-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Module not found: Error: Can't resolve 'path' in '/home/runner/work/react-color/react-color/node_modules/@babel/core/lib/transformation'
BREAKING CHANGE: webpack < 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: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
- https://github.com/uiwjs/react-color/actions/runs/5098402607/jobs/9166126245#step:9:41
- Multiple errors Module not found: Error: Can't resolve path, buffer, stream during upgrade to react-scripts 5.0.0 facebook/create-react-app#12072 (comment)
- v5 used to include polyfills for node.js core modules by default facebook/create-react-app#11756 (comment)
- How to solve ./node_modules/handlebars/lib/index.js:15:11-24 - Error: Module not found: Error: Can't resolve 'fs' in module federation config? webpack/webpack#16128 (comment)
- https://stackoverflow.com/a/70712807/1334703
- REACT 18 + WEBPACK 5: Error: Can't resolve 'process/browser' react-dnd/react-dnd#3425 (comment)
- Webpack breaking change: The extension in the request is mandatory mysticatea/event-target-shim#37 (comment)
Metadata
Metadata
Assignees
Labels
No labels