-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Description
Is this a bug report?
Yes this is a bug because WatchMissingNodeModulesPlugin.apply has a typecasting issue.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
I looked for known issues with missingDeps.some and WatchMissingNodeModulesPlugin.
Environment
react-dev-utils@nextnode -v: v10.0.0npm -v: 6.0.0webpack: 4.6.0npm ls react-scripts(if you haven’t ejected):
[email protected] /Users/jacobcattrall/GitHub/create-react-library
└── (empty)
- Operating system: OSX
Steps to Reproduce
- Require the plugin
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); - Add
new WatchMissingNodeModulesPlugin()to the plugin section of your webpack.config.js. - Run the project.
Expected Behavior
Logic would work with the delivered type (Set).
Actual Behavior
Webpack crashes with missingDeps.some is not a function error.
The crash happens at this particular line: https://github.com/facebook/create-react-app/blob/next/packages/react-dev-utils/WatchMissingNodeModulesPlugin.js#L25
missingDeps is a Set
I cannot seem to find documentation on there being a Set.prototype.some function. I wonder if compilation.missingDependencies is supposed to be an array? If so, I simply cannot follow how it became a Set. Can anyone point me in the right direction to debug/fix this issue?
Reproducible Demo
git clone [email protected]:krazyjakee/create-react-library.git
npm i
npm run startMetadata
Metadata
Assignees
Labels
No labels