Closed ghost closed 7 years ago
It's an isomorphic app. fs isn't available on the browser so you need to instruct webpack to only look for fs when constructing the server bundle.
Try adding this to your webpack config:
node: { fs: "empty" }
Thank you David. The complete solution was
// dashboard.web/webpack/dev.config.js
...
module.exports = {
...
node: { fs: "empty", child_process: "empty" },
...
};
Tried to add the following code
In the dev mode I have the following
If the production the code
is commented out, everything is fine (in dev mode)
Please, could you tell me how can I solve this issue properly. Thanks