-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I'm not sure why it would require Node. I'm not seeing any require that uses Node packages in your code.
Module not found: Error: Can't resolve 'path' in 'D:\.yarn\cache\valid-path-npm-2.1.0-b830ced96d-1f1bdd9f18.zip\node_modules\valid-path\helpers'
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 }
ERROR in ./.yarn/cache/valid-path-npm-2.1.0-b830ced96d-1f1bdd9f18.zip/node_modules/valid-path/helpers/migrate.js 1:11-26
Module not found: Error: Can't resolve 'path' in 'D:\.yarn\cache\valid-path-npm-2.1.0-b830ced96d-1f1bdd9f18.zip\node_modules\valid-path\helpers'
Failed to compile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels