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

[core] can not export atoms #1261

Closed
u3u opened this issue Jul 1, 2022 · 9 comments · Fixed by #1260
Closed

[core] can not export atoms #1261

u3u opened this issue Jul 1, 2022 · 9 comments · Fixed by #1260

Comments

@u3u
Copy link
Contributor

u3u commented Jul 1, 2022

// ts-error:
// Exported variable 'itmeSizeAtom' has or is using name 'WithInitialValue'
// from external module but cannot be named.ts(4023)
export const itmeSizeAtom = atom(16)
@dai-shi
Copy link
Member

dai-shi commented Jul 1, 2022

Thanks for reporting.

Confirmed in ts playground: https://tsplay.dev/w8EgdN

image

@emersonlaurentino
Copy link

I'm also having the same problem
Screen Shot 2022-07-01 at 10 08 37

@shensven
Copy link

shensven commented Jul 1, 2022

@emersonlaurentino
Copy link

I downgrade to jotai@1.7.2 and works well.

@dai-shi
Copy link
Member

dai-shi commented Jul 1, 2022

Sorry guys. This is totally unexpected. Please use the previous version in the meantime.

@dai-shi dai-shi linked a pull request Jul 2, 2022 that will close this issue
@dai-shi
Copy link
Member

dai-shi commented Jul 2, 2022

Hi, can anyone (as many as possible) try https://ci.codesandbox.io/status/pmndrs/jotai/pr/1260/builds/267263 build?
Please see "Local Install Instructions".

@dai-shi
Copy link
Member

dai-shi commented Jul 7, 2022

Can anyone confirm??

@u3u
Copy link
Contributor Author

u3u commented Jul 8, 2022

image

I confirm it's okay.

@dai-shi
Copy link
Member

dai-shi commented Jul 8, 2022

Thanks!

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

Successfully merging a pull request may close this issue.

4 participants