-
Notifications
You must be signed in to change notification settings - Fork 342
error TS5023: Unknown compiler option 'emitdeclarationonly'.
狼叔 edited this page Dec 24, 2020
·
1 revision
➜ core git:(0.3.x) ✗ npm run watch
> @imove/[email protected] watch /Users/i5ting/workspace/github/iMove/packages/core
> watch 'npm run build' ./src
> Watching ./src
> @imove/[email protected] build /Users/i5ting/workspace/github/iMove/packages/core
> rollup -c & npm run declare-type
> @imove/[email protected] declare-type /Users/i5ting/workspace/github/iMove/packages/core
> tsc --emitDeclarationOnly
error TS5023: Unknown compiler option 'emitdeclarationonly'.
此时是ts版本太低。
➜ core git:(0.3.x) ✗ npm i -g typescript
/Users/i5ting/.nvm/versions/node/v12.13.0/bin/tsc -> /Users/i5ting/.nvm/versions/node/v12.13.0/lib/node_modules/typescript/bin/tsc
/Users/i5ting/.nvm/versions/node/v12.13.0/bin/tsserver -> /Users/i5ting/.nvm/versions/node/v12.13.0/lib/node_modules/typescript/bin/tsserver
+ [email protected]
added 1 package from 1 contributor in 2.103s
➜ core git:(0.3.x) ✗ tsc --version
Version 4.1.3