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

Error: Cannot read properties of undefined (reading 'ProvidePlugin') #53

Open
harsh183 opened this issue Jun 3, 2024 · 0 comments
Open

Comments

@harsh183
Copy link

harsh183 commented Jun 3, 2024

Using "node-polyfill-webpack-plugin": "^4.0.0" after just ejecting on latest react scripts (5.0.1) with Node 16.

In the config

// other imports
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

// other config
plugins: [
        new NodePolyfillPlugin(),
        new ModuleScopePlugin(...)
]

the rest is exactly what eject gives. I tried commenting ModuleScopePlugin but that didn't do anything.

I can verify that ProvidePlugin doesn't exist anywhere within my codebase, and looks like it's something inherent to webpack

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

1 participant