【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里,有的话就删了重新下载指定版本

目录
相关文章
|
9月前
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
209 0
|
6天前
|
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.
|
6天前
vue2项目安装出现Syntax Error: Error: Cannot find module ‘less‘
vue2项目安装出现Syntax Error: Error: Cannot find module ‘less‘
|
6天前
|
JavaScript 前端开发
ESLint—— Failed to load config “standard“ to extend from
ESLint—— Failed to load config “standard“ to extend from
22 0
|
6天前
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.
24 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
790 0
Maven - Error:java: Annotation processing is not supported for module cycles. Please ensure that all
|
5月前
(node)Warning: Accessing non-existent property ‘xxx‘ of module exports inside circular depen
(node)Warning: Accessing non-existent property ‘xxx‘ of module exports inside circular depen
|
6月前
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 “
|
7月前
|
开发框架 安全 前端开发
什么是 Angular 的 Active Support 版本和 Long Term Support 版本
什么是 Angular 的 Active Support 版本和 Long Term Support 版本
37 0
|
9月前
|
资源调度 JavaScript Windows
yarn create vite的时候,报错:SyntaxError: Unexpected token ‘.‘ at Loader.moduleStrategy (internal/modules/
yarn create vite的时候,报错:SyntaxError: Unexpected token ‘.‘ at Loader.moduleStrategy (internal/modules/
307 0