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

Fix Webpack Configuration for Missing Polyfills with React-Rewired #11

Conversation

adityabhattad2021
Copy link

Problem:

React application in clientAnonymousVoting was encountering 'module not found' errors due to some polyfills no longer being included by default in the Webpack configuration.

Solution:

To address this issue, I implemented a solution using react-rewired to override the default Webpack configuration.

Changes Made:

  • Added react-rewired to devDependencies for overriding the Webpack config.
  • Created a config-overrides.js file to specify the missing polyfills.
  • Adjusted the npm scripts in package.json to use react-app-rewired instead of react-scripts for start, build, and test commands.

Fixes:

  • Resolves the 'module not found' errors related to missing polyfills.

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

Successfully merging this pull request may close these issues.

2 participants