Skip to content

mrmeku/portable_types_repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repro non-portable types when using pnpm

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published