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

[Web] query-string does not contain a default export #8971

Closed
yairopro opened this issue Oct 22, 2020 · 7 comments
Closed

[Web] query-string does not contain a default export #8971

yairopro opened this issue Oct 22, 2020 · 7 comments
Labels

Comments

@yairopro
Copy link

Current Behavior

I tried to import createStackNavigator, and I got the build error:

Failed to compile.

./node_modules/@react-navigation/core/lib/module/getStateFromPath.js
Attempted import error: 'query-string' does not contain a default export (imported as 'queryString').

I am using webpack & react-native-web.

Expected Behavior

The build to pass.

How to reproduce

import {createStackNavigator} from "@react-navigation/stack";

Your Environment

software version
@react-navigation/stack ^5.9.3
@react-navigation/native ^5.7.6
react-native-web ^0.14.3
webpack 4.28.3
@yairopro
Copy link
Author

Thanks !

@aliassar
Copy link

aliassar commented May 4, 2021

Just found this bug in my new project again. Exactly the same build error ( run perfectly in dev mode ) & here is my environment:

software version
@react-navigation/stack ^5.12.8
@react-navigation/native ^5.9.4
react-native-web ^0.16.2
webpack 4.33.0 ( not sure )

P. E. I tried a lot of version combinations & I don't think that's the problem.

@Nico-Guyon
Copy link

I have exactly the same problem, did you by any chance find a solution ?

@github-actions
Copy link

github-actions bot commented Jul 9, 2021

Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.

@yairopro
Copy link
Author

@Nico-Guyon
The bug is fixed
Just update

@BlueBazze
Copy link

./node_modules/@react-navigation/core/lib/module/getStateFromPath.js
Attempted import error: 'parse' is not exported from 'query-string' (imported as 'queryString').

Using @react-navigation/core@6.1.0
Ive toyed around with it a bit. Dont seem to have found a solution.
Except importing from "querystring" instead of "query-string". I wouldnt know the side effects from this.

@Snotax
Copy link

Snotax commented Feb 3, 2022

I have the same problem on those versions:

"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.4.1",
"@react-navigation/stack": "^6.1.1",
"@react-navigation/core": ^6.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants