title: BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default
body: <p>I'm trying to use Socket.io in my Laravel/Vue.js app. But I'm getting this error when running <code>npm run dev</code>.</p>
  <pre><code>Module not found: Error: Can't resolve 'path' in '/home/nicolas/LaravelProjects/Chess/node_modules/socket.io/dist'
  
  BREAKING CHANGE: webpack &lt; 5 used to include polyfills for node.js core modules by default.
  This is no longer the case. Verify if you need this module and configure a polyfill for it.
  
  If you want to include a polyfill, you need to:
      - add a fallback 'resolve.fallback: { &quot;path&quot;: require.resolve(&quot;path-browserify&quot;) }'
      - install 'path-browserify'
  If you don't want to include a polyfill, you can use an empty module like this:
      resolve.fallback: { &quot;path&quot;: false }
  
  webpack compiled with 9 errors
  </code></pre>
  <p>I tried changing the webpack.config.js file by adding <code>resolve.fallback: { &quot;path&quot;: false }</code>, but it doesn't seem to help. It is possible that I'm doing it wrong since I have 4 webpack.config.js files in my project (I don't know why).</p>
  <p>Maybe can I downgrade webpack? Thanks!</p>