To replicate the bug, run the following commands
pnpm install
./node_modules/.bin/tsc
which will generate the following output
./node_modules/.bin/tsc
index.ts:9:14 - error TS2742: The inferred type of 'slice' cannot be named without a reference to '.pnpm/[email protected]/node_modules/immer/dist/internal'. This is likely not portable. A type annotation is necessary.
9 export const slice = createSlice({
~~~~~
Found 1 error in index.ts:9