-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Cannot find module querystring-browser
#7556
Comments
querystring-browser
+1, same problem here, error "Cannot find module: 'querystring-browser'. Make sure this package is installed." with "swagger-ui-react@3.52.4" |
@char0n have a look at this! Probably due to the buffer PR. |
swagger-ui-react has no dependency to querystring-browser |
Seems to be fixed now with "swagger-ui-react@3.52.5" where dependency on "swagger-client" was upgraded. |
Hello all, This is a repeated problem between For now, please update to the latest version of swagger-ui: |
I'm seeing a much more serious version of this problem, even after upgrading to 3.52.5. That version does indeed fix the issues with To repro:
At this point, I get a bunch of errors about missing packages. These errors don't appear when I don't use the linking mechanism. Here's what I'm seeing:
It would appear that the following are not being set up correctly as dependencies:
|
Hi @kaiyoma, First thing I've noticed is that you're using I thus cannot reproduce errors that you're seeing. I've put together a repository with minimal webpack@5 setup using swagger-ui-react and I was able to compile successfully without any errors. Repo: https://github.com/char0n/minimal-react-webpack-babel-setup Repo uses swagger-ui-react@3.52.5 which comes with swagger-client@3.17.0. Everything compiles without errors and works as expected. I assume you might have problems with your local setup. |
Closing this for now. If any additional problems arise, please reopen. |
I can confirm that the 7 missing dependencies mentioned above are an issue when using the PnP feature of Yarn 2. I was able to fix it by repeatedly running |
Sounds like something about swagger doesn't work correctly with next-generation package managers. |
Q&A (please complete the following information)
Content & configuration
Module not found: Error: Can't resolve 'querystring-browser' in '/tmp/backstage-e2e-fvJBjP/test-app/node_modules/swagger-ui-react'
Looks like due to the
3.17.0
release ofswagger-client
which removed thequerystring-browser
dependency, this module fails to build with the latest stuff.Had to force to use the older
3.16.0
ofswagger-client
to get this to work.The text was updated successfully, but these errors were encountered: