【TS】You are currently running a version of TypeScript which is not officially supported by @typesc

简介: 【TS】You are currently running a version of TypeScript which is not officially supported by @typesc

前言

写项目的时候pnpm run dev控制台警告

注意:其实只是个警告内容,一般来说没有影响项目启动报错,如果影响了就换个版本安装用;

翻译一下

意思就是typescript版本太高了

解决

首先卸载typescript

npm uninstall -g typescript

然后安装指定版本typescript

npm intsall -g typescript@版本号

这里我安装的是4.5.5版本

npm install -g typescript@4.5.5

查看安装的版本

tsc -v

重新运行项目就解决了

注:如果还是警告,看下是不是当前项目里有typescript

也就是在node_modules里,有的话就删了重新下载指定版本

目录
相关文章
|
10天前
|
Perl
pod spec lint编译时报error: include of non-modular header inside framework module
pod spec lint编译时报error: include of non-modular header inside framework module
16 1
|
18天前
|
JavaScript
vue启动报错解决Syntax Error: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.
vue启动报错解决Syntax Error: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.
|
18天前
|
JavaScript 前端开发
The TypeScript Compiler - Version 5.2.2,tsc -w无效怎么办?
The TypeScript Compiler - Version 5.2.2,tsc -w无效怎么办?
50 0
|
18天前
|
JavaScript 前端开发
ESLint—— Failed to load config “standard“ to extend from
ESLint—— Failed to load config “standard“ to extend from
24 0
|
18天前
Angular启动/node_modules/@types/node/index.d.ts (20,1): Invalid ‘reference‘ directive syntax.
Angular启动/node_modules/@types/node/index.d.ts (20,1): Invalid ‘reference‘ directive syntax.
25 2
|
Java Maven
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
792 0
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
|
7月前
vue-demi@0.13.11: The engine “node“ is incompatible with this module. Expected version “>=12“. Got “
vue-demi@0.13.11: The engine “node“ is incompatible with this module. Expected version “>=12“. Got “
|
10月前
|
资源调度 JavaScript Windows
yarn create vite的时候,报错:SyntaxError: Unexpected token ‘.‘ at Loader.moduleStrategy (internal/modules/
yarn create vite的时候,报错:SyntaxError: Unexpected token ‘.‘ at Loader.moduleStrategy (internal/modules/
345 0
|
10月前
Fullpage.js version 3 has changed its license to GPLv3 and it requires a `licenseKey` option ...
Fullpage.js version 3 has changed its license to GPLv3 and it requires a `licenseKey` option ...
98 0
|
API Python
解决办法:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
解决办法:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
154 0

热门文章

最新文章