node require fs not found

Solutions on MaxInterview for node require fs not found by the best coders in the world

showing results for - "node require fs not found"
Tommaso
30 Mar 2017
1module.exports = {
2  webpack: (config, { isServer }) => {
3    // Fixes npm packages that depend on `fs` module
4    if (!isServer) {
5      config.node = {
6        fs: 'empty'
7      }
8    }
9
10    return config
11  }
12}