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

atomWithCache debugLabel issue #19

Open
1 of 2 tasks
ajdiyassin opened this issue Dec 2, 2023 · 1 comment
Open
1 of 2 tasks

atomWithCache debugLabel issue #19

ajdiyassin opened this issue Dec 2, 2023 · 1 comment

Comments

@ajdiyassin
Copy link

ajdiyassin commented Dec 2, 2023

Summary

I'm getting this error when I use atomWithCache in NextJs 14

Error: Cannot set properties of undefined (setting 'debugLabel')

NextJs setup

experimental: {
    swcPlugins: [
      ['@swc-jotai/react-refresh', { }],
      ['@swc-jotai/debug-label', {}],
    ],
  },

Link to reproduction

Check List

Please do not ask questions in issues.

  • I've already opened a discussion before opening this issue, or already discussed in other media.

Please include a minimal reproduction.

@dai-shi dai-shi transferred this issue from pmndrs/jotai Dec 2, 2023
@Tiscs
Copy link

Tiscs commented Jan 27, 2024

Also when subscribe value by useAtomValue(selectAtom(...)).

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

No branches or pull requests

2 participants