You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Everything should be bundled in the dist folder, with two dirs (browser and server) and a file (server.js).
I should be able to have only this folder to run my server and serve the pages, without have the weight of node_modules
What is the current behavior?
I got an error when I lunch the server:
Cannot find module '../lib/utils.js'
at Function.webpackEmptyContext [as resolve] (
The only way I found to resolve the problem is change to externals with this on the webpack configuration:
varnodeExternals=require('webpack-node-externals');module.exports={externals: [nodeExternals()],//Old value was /node_modules///The rest of the conf}
The problem is that to run the express server I need also the node_modules folder, and it weights.
The text was updated successfully, but these errors were encountered:
Bug Report
What is the expected behavior?
Everything should be bundled in the dist folder, with two dirs (browser and server) and a file (server.js).
I should be able to have only this folder to run my server and serve the pages, without have the weight of node_modules
What is the current behavior?
I got an error when I lunch the server:
The only way I found to resolve the problem is change to externals with this on the webpack configuration:
The problem is that to run the express server I need also the node_modules folder, and it weights.
The text was updated successfully, but these errors were encountered: