question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Can't import the named export 'useSyncExternalStore' from non EcmaScript module

See original GitHub issue

Is 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?

Screenshot from 2022-05-02 09-00-03

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TkDodocommented, May 30, 2022

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.

1reaction
tmmcommented, May 24, 2022

useSyncExternalStore is backwards compatible and should work with any version of React that supports hooks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found