Skip to content

Commit

Permalink
package: npm i querystring-es3
Browse files Browse the repository at this point in the history
Module not found: Error: Can't resolve 'querystring' in '/home/tormath1/github.com/flatcar/nebraska/frontend/src/api'
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: { "querystring": require.resolve("querystring-es3") }'
	- install 'querystring-es3'
If you don't want to include a polyfill, you can use an empty module like this:
	resolve.fallback: { "querystring": false }

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Aug 1, 2024
1 parent 6ac445e commit b802bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"moment-timezone": "^0.5.38",
"prop-types": "^15.7.2",
"pubsub-js": "^1.9.3",
"querystring-es3": "^0.2.1",
"react": "^17.0.2",
"react-color": "^2.17.3",
"react-dom": "^17.0.2",
Expand Down

0 comments on commit b802bce

Please sign in to comment.