Open ivanjeremic opened 1 week ago
Also experiencing this issue:
Setup fresh vite app with Typescript + SWC, setup to run in Docker.
App works as expected with npm run dev
, but npm run build
fails with below output:
tsconfig.app.json:23:5 - error TS5023: Unknown compiler option 'noUncheckedSideEffectImports'.
23 "noUncheckedSideEffectImports": true
tsconfig.app.json:3:5 - error TS5069: Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or option 'composite'.
3 "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
tsconfig.node.json:21:5 - error TS5023: Unknown compiler option 'noUncheckedSideEffectImports'.
21 "noUncheckedSideEffectImports": true
tsconfig.node.json:3:5 - error TS5069: Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or option 'composite'.
3 "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
Found 4 errors.
System: OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa) CPU: (4) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz Memory: 8.61 GB / 15.62 GB Container: Yes Shell: 5.8 - /usr/bin/zsh Binaries: Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm
Fixed the issue by running:
npm install --dev typescript@latest
and
npm install --global typescript@latest
Describe the bug
Unknown compiler option 'noUncheckedSideEffectImports'
Please add support for typescript@latest! (5.6.3)
Reproduction
vitejs library project in lib mode + vite-plugin-dts
Steps to reproduce
npm create vite > advanced > library > typescript
System Info
Validations