[bug] Can't import the named export 'useSyncExternalStore' from non EcmaScript module
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Package Version
0.3.1
Current Behavior
I have no clue where it originates, I only migrated from ^0.1.3 to ^0.3.1 then suddenly it starts becoming an issue
Expected Behavior
Should not throw this exception
Steps To Reproduce
Create a new project and use multiple hooks and specifically use version ^0.1.3
then migrate to ^0.3.1
so you’ll have to change most hooks since it returns single object
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:22 (7 by maintainers)
Top Results From Across the Web
Can't import the named export XXXX from non EcmaScript ...
the solution is to make sure that you have a webpack.config.js file in the root of your project directory that looks something like...
Read more >Can't import the named export x from non EcmaScript module ...
Hey I have problem to use @polkadot/extension-dapp Using tutorials: https://polkadot.js.org/docs/extension/usage ...
Read more >Can't import the named export from non EcmaScript module
Hi My site name is stupefied-lamarr-20c8d9 On the server side of my app I have lambda functions and within those I'm using apollo-server-lambda...
Read more >"Can't import the named export from non EcmaScript module ...
KJS: "Can't import the named export from non EcmaScript module (only default export is available)" with react-map-gl-draw external interface ; Type, Bug B....
Read more >can't import the named export 'cloneelement' from non ...
im having this error when doing a named import from framer-motion module in reactjs. Obs: im not using webpack. import { Fragment }...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
please have a look at https://github.com/tannerlinsley/react-query/releases/tag/v4.0.0-beta.17 where we’ve hopefully fixed the upstream issue.
useSyncExternalStore
is backwards compatible and should work with any version of React that supports hooks.