swc-jotai
swc-jotai copied to clipboard
atomWithCache debugLabel issue
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.
- [ ] I've added a link to a typescript playground or codesandbox with a minimal reproduction.
Also when subscribe value by useAtomValue(selectAtom(...)).
Hi there!
Thanks for reporting.
Can you provide a reproduction?
Closing due to inactivity.