node require fs not found

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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}