Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined #17872

Closed
nextniko opened this issue Dec 19, 2023 · 1 comment

Comments

@nextniko
Copy link

node v14.18.0
webpack v3.6.0

I encountered an error when using DllReferencePlugin
The error message is TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined
my code:
new webpack.DllPlugin({ context: __dirname, name: '[name]_[fullhash]', path: path.join(__dirname, './dll/manifest.json'), }), new webpack.DllReferencePlugin({ context: __dirname, manifest: path.join(__dirname, './dll/manifest.json'), sourceType: 'commonjs2' })

Error location:
lib/DelegatedModuleFactoryPlugin.js
a0fd72d0-53bb-47df-9566-35f09cc9119f

@alexander-akait
Copy link
Member

Thank you for creating this issue. However, issues need to follow one of our templates so that we can clearly understand your particular circumstances.

Please help us help you by recreating the issue using one of our templates.

I will reopen the issue when you fixed it, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants