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

BUG: can't resolve 'querystring' #107

Open
bondom opened this issue Jul 12, 2023 · 1 comment
Open

BUG: can't resolve 'querystring' #107

bondom opened this issue Jul 12, 2023 · 1 comment

Comments

@bondom
Copy link

bondom commented Jul 12, 2023

ERROR in ./node_modules/error-overlay-webpack-plugin/dist/entries/devserver.mjs?&sockHost=localhost&sockPath=/ws&sockPort=3023 3:0-37
Module not found: Error: Can't resolve 'querystring' in '/Users/admin/project/node_modules/error-overlay-webpack-plugin/dist/entries'

The reason of this error is that this package uses querystringpackage but doesn't have it in dependencies, instead it relies on providing of this package by url package.
Latest version of url package replaced querystring with qs - that's why we now have this error.

@vanvix
Copy link

vanvix commented Jan 17, 2024

I had to add updated version of this package( v1.1.1) to make it work. Also i had to add "querystring" fallback to the webpackConfig.resolve.fallback object:

resolve:{
 fallback: {
     "querystring": require.resolve("querystring-es3")
   }
}

Also, added a new dependency: "querystring-es3": "0.2.1"

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