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

Results 21 swc-jotai issues
Sort by recently updated
recently updated
newest added

Resolves https://github.com/pmndrs/swc-jotai/issues/27 Should make it compatible with Next 14.2. I've tested this by building the new wasm file and overriding the one in node_modules for debug_label. Not sure what more...

We need a new contributor who can maintain this project.

Next 14.2 has updated its internal version of swc_core, and we're blocked on upgrading until all our installed plugins have also updated (not upgrading swc-jotai causes compilation errors).

Hi, it’s great to learn and practice this project. After I updated @swc/core in my vite-based project to version [1.3.106](https://github.com/swc-project/swc/releases/tag/v1.3.106), when running vite dev, I got the following error message...

```tsx import {atom} from "jotai"; const abc = [atom("message")]; console.log(abc.length): // Outputs undefined ``` Instead `abc` is now an atom (`init`, `read`, `write` properties), so I believe something is causing...

help wanted

After `@vitejs/plugin-react-swc` changed their version to 3.6.0 (which, I assume, contains an swc upgrade), every compilation fails with: ``` 0: failed to invoke `...../node_modules/@swc-jotai/debug-label/swc_jotai_debug_label.wasm` as js transform plugin at ..../node_modules/@swc-jotai/debug-label/swc_jotai_debug_label.wasm...

## reproduce step 1. init a new next.js repo 2. install `jotai` and `@swc-jotai/react-refresh` 3. enable `@swc-jotai/react-refresh` in `next.config.js` 4. add a jotai atom in a page with 'use client'...

help wanted

We are using `jotai-swc` in next.js 14 with the swc plugin enabled and encounter the following issue: When the atom is generated from a **scoped named function** all atoms return...

needs reproduction

I have a nextJS application using the app router. I added jotai and the swc plugins. When I later added jotai-optics to use focusAtom I got `ReferenceError: t is not...

## 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', {...

needs reproduction