How can I use webpack with express?

What I ended up doing was I used 2 different configurations, 1 for packing the server stuff together using webpack, and 1 for packing all the browser stuff together and also run webpack dev server for hot reloading. Server webpack config aka webpack.node.config.js now looks like this: Browser webpack config aka webpack.browser.config.js now looks like this:

Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__

Process In order to find a potential solution to this issue, I had to tinker with the optimization module, which was indeed the issue here, even when not enabled surprisingly. My best guess is that some parameters are set to default in production mode and not in dev mode and this causes the issues of imports and undefined properties. … Read more

Webpack: “there are multiple modules with names that only differ in casing” but modules referenced are identical

This is usually a result of a minuscule typo. For instance, if you are importing your modules like import Vue from ‘vue’, import Vuex from ‘vuex’. Go through your files and check where you used from ‘Vue’ or from ‘Vuex’ – make sure to use the exact same capitals (uppercase letters) as in your import statements. The error descriptions should have … Read more