swc-jotai icon indicating copy to clipboard operation
swc-jotai copied to clipboard

atomWithCache debugLabel issue

Open ajdiyassin opened this issue 2 years ago • 2 comments

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.

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

Please include a minimal reproduction.

ajdiyassin avatar Dec 02 '23 17:12 ajdiyassin

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

Tiscs avatar Jan 27 '24 16:01 Tiscs

Hi there!

Thanks for reporting.

Can you provide a reproduction?

Thisen avatar Jun 13 '24 19:06 Thisen

Closing due to inactivity.

Thisen avatar Sep 03 '24 11:09 Thisen