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.

Can't import from jotail/utils in 1.3.1

See original GitHub issue

code:

import { atom } from 'jotai';
import { atomWithReducer, atomFamily } from 'jotai/utils';

error:

./node_modules/jotai/utils.mjs
Can't import the named export 'SECRET_INTERNAL_getScopeContext' from non EcmaScript module (only default export is available)

using react-scripts 4.03, without typescript.

Sorry, again I’m not able to reproduce this in codesandbox yet, it seems to work there fine… 😞

But it’s fixed locally if I pin 1.3.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
barelyhumancommented, Aug 26, 2021

Will go through their setup for frontend apps in a while, for now we’d prefer people have working setups

@MaxBittker could you test with the below install and let me know whether it works?

yarn add https://pkg.csb.dev/barelyhuman/jotai/commit/9773a2a1/jotai
npm i https://pkg.csb.dev/barelyhuman/jotai/commit/9773a2a1/jotai
1reaction
dai-shicommented, Aug 25, 2021

(Oh, this sounds like a tough one. I didn’t expect cra would pick mjs. cc: @barelyhuman )

Thanks for reporting. Can you share the codesandbox link and if we download the zip and run locally, it will repro?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't import my own modules in Python - Stack Overflow
In your particular case it looks like you're trying to import SomeObject from the myapp.py and TestCase.py scripts. From myapp.py, do import SomeObject....
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