-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Can't resolve 'use-sync-external-store/shim' in `~/.../node_modules/wouter'. Did you mean 'index.js'? #275
Comments
@jrnkng hm, I think this is due to a new webpack 5 feature. React query had the same issue: TanStack/query#3521 (comment) We can probably use their same fix. |
@molefrog I opened up a PR to fix this issue, mind taking a look? |
On it! Sorry, didn't get the notification. |
The directory import issue affects other esm-focused bundlers as well.
Adjusting the cjs dist import makes the error go away:
this might help. |
Released in |
Updated to latest, results in the following
added a PR for the name resolution fix. #277 |
@Ziinc Could you check once again please (alpha.3)? |
@molefrog looks like the version was bumped but the change wasn't included. May be you forgot to pull when publishing? |
Sorry, my bad 🤦 |
works great now 🥳 thanks @molefrog |
@Ziinc Let us know if you experience any other issues, I'll keep the alpha for the couple of days/weeks and if everything works well I can drop the release. |
When I import
Route
from 'wouter' I get the following error.Created this project two days ago with create-react-app. Nothing special added really but somehow it doesn't work.
This is my
package.json
:EDIT:
I created a fresh create-react-app project and installed wouter. Same thing happens when I import
Route
and use it.The text was updated successfully, but these errors were encountered: