E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
compilerOptions
【TypeScript】Element 组件导入在 TypeScript 5 报错:模块 ““element-plus““ 没有导出的成员。。。
报错现象解决方法typescript5.0版本升级,使用了
compilerOptions
.moduleResolution:"bundler"的模块编译选项。
努力挣钱的小鑫
·
2023-07-17 01:42
TypeScript
typescript
javascript
vue.js
typescript helloword
创建文件夹创建ch01文件夹新建tsconfig.json{"
compilerOptions
":{"strict":true,"target":"ES5"}}“tsconfig.json”是TypeScript
假装我不帅
·
2023-07-13 22:10
typescript
typescript
ubuntu
javascript
vscode 加上c++11编译选项
errorThisfilerequirescompilerandlibrarysupportfortheISOC++2011standard.Thissupportmustbeenabledwiththe-std=c++11or-std=gnu++11
compileroptions
lliuhao--
·
2023-06-22 23:11
解决方法
vscode
c++
ide
vscode内使用别名智能提示图片资源路径
在使用webpack工具开发时,经常会使用别名来方便管理模块的引入,这时候需要做一些配置来让ide能够提示对应的路径.以vscode为主//tsconfig.json{"
compilerOptions
"
kkopitehong
·
2023-06-17 04:18
3、深入掌握ts-tsconfig
常用配置解释{"
compilerOptions
":{"lib":["es5","es6","es7","DOM"],//库选项"target":"es6",//目标选项用哪个es版本来编译"module
PrayerFaith-Depart
·
2023-06-15 12:02
javascript
前端
开发语言
vue3+ts vscode无法识别/@/ 路径
在tsconfig.json中添加下面的配置即可{"
compilerOptions
":{"paths":{"/@/*":["src/*"]}}}
PQ℡
·
2023-06-13 21:59
vue
js
ts
react项目配置 @ 为src根目录
前置:修改jsconfig.json文件{"
compilerOptions
":{"jsx":"react","experimentalDecorators":true,"baseUrl":"./","paths
wangshang1320
·
2023-06-12 10:50
react.js
javascript
前端
vscode 代码定义跳转,vue文件跳转
都可以直接点击方法跳到定义的文件,为啥vscode不行网上说ts支持,js不可以其实js也可以,之所以跨文件找不到是因为没有建立联系在项目根目录新建jsconfig.json输入配置内容jsconfig.json{"
compilerOptions
wakangda
·
2023-06-12 03:08
前端
前端开发工具
vue.js
vscode
javascript
vscode 点击import引用的组件直接跳转方法
window点击ctrl进入import引入的文件,方法等等跳转到所在文件在根目录新建文件jsconfig.json并添加一下代码{"allowJs":true,"
compilerOptions
":{"
流丶年丶
·
2023-06-12 03:07
前端
vscode Vue引用点击跳转
window点击ctrl(MAC点击command)+通过import引入的文件,方法等等,跳转到所在文件在项目根目录新建文件jsconfig.json并添加一下代码{"allowJs":true,"
compilerOptions
陌家小染
·
2023-06-12 03:32
vscode
vue.js
javascript
vue3 tsconfig.json配置
{"vueCompilerOptions":{"experimentalDisableTemplateSupport":true//去掉volar下el标签红色波浪线问题},"
compilerOptions
安徒生1997
·
2023-06-10 20:27
在tsconfig.json中报错找不到webpack-env的类型定义文件
解决方法:1.npmi@types/webpack-env@types/node-D一定要用npm安装,不要用yarn,否则会失败2.配置tsconfig.json{"
compilerOptions
":
有你好果子
·
2023-06-09 03:52
typescript
vue.js
webpack
typescript
Webstorm上创建的Typescript项目 console.log报错显示红色
出错如下:console.log()Unresolvedvariableortypeconsole.项目配置:tsconfig.json{"
compilerOptions
":{"module":"ES2015
Lan.W
·
2023-04-21 12:35
typescript
webstorm
javascript
js emit is not support
使用Vite构建的Vue3项目,出现此种问题打开tsconfig.json在
compilerOptions
中加上,"noEmit":true,"
compilerOptions
":{....,"noEmit
Master-Tang
·
2023-04-20 17:50
vue.js
Property 'context' does not exist on type 'NodeRequire'.ts(2339)
modules',false,/\.js$/)查阅相关资料,有人提出解决方法如下,安装@types/webpack-env依赖:npmi-D@types/webpack-env修改tsconfig.json:{"
compilerOptions
·
2023-04-19 05:17
vue3.0使用流程和变化
./**/*.ts"],"
compilerOptions
":{"jsx":
吃掉代码
·
2023-04-17 11:42
Property ‘context‘ does not exist on type ‘NodeRequire‘.ts(2339)
modules',false,/\.js$/)查阅相关资料,有人提出解决方法如下,安装@types/webpack-env依赖:npmi-D@types/webpack-env修改tsconfig.json:{"
compilerOptions
IICOOM
·
2023-04-15 10:24
webpack
javascript
vue.js
找不到模块“path”或其相应的类型声明-ts
1.安装node的类型,在终端执行以下命令npminstall-D@types/node2.在tsconfig.json文件,确保types中含有"node"{"
compilerOptions
":{"types
海上的蚂蚁
·
2023-04-10 19:11
tsconfig.json文件快捷详解
/src/**/*"],//不编译某些文件"exclude":["test.ts"],"
compilerOptions
":{//只编
godlike-icy
·
2023-04-10 14:02
web前端
TypeScript
typescript
报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法
Parameter‘XXX’implicitlyhasan‘any’type.解决方法tsconfig.json添加"noImplicitAny":false,或者“strict”:true,改为false{"
compilerOptions
呆子小木心
·
2023-04-10 00:29
TS
vue
typescript
vue
NestJs Monorepo模式下找不到Entity实体
请修改nest-cli.json文件,编译选项配置:"
compilerOptions
":{"webpack":false,"tsConfigPa
明明人
·
2023-04-09 19:12
NestJs
node.js
typescript
后端
typescript学习笔记1-tsconfig.json配置和变量类型声明
一,tsconfig.json{//编译器选项"
compilerOptions
":{/*基本选项*/"target":"es5",//指定ECMAScript目标版本:'ES3'(default),'ES5
qq_24986271
·
2023-04-08 01:24
typescript
typescript
学习
json
TS之declare的简单使用
声明一个变量声明一个作用域注意专栏目录请点击.d.ts的顶级声明必须以declare开头以declare声明的变量和模块后,其他地方不需要引入,就可以直接使用了注意我们需要在配置文件下,引入声明文件{"
compilerOptions
youhebuke225
·
2023-04-06 04:08
TS
javascript
前端
开发语言
tsconfig.json 文件你了解多少?一偏文章帮你搞定
1、
compilerOptions
属性"baseUrl":"."(1)用于拓宽引入非相对模块时的查找路径的。
老罗_laoluo
·
2023-04-02 09:36
vscode 对 typescript代码调试的步骤
2.打开tsconfig.json文件,添加以下配置:{"
compilerOptions
":{"sourceMap":true,"outDir
·
2023-03-30 10:27
laya引擎装饰器和await的支持
laya引擎不支持ts装饰器和await语法,查了一下资料,需要修改tsconfig.json{"
compilerOptions
":{"module":"es6","target":"es6","noEmitHelpers
xkylin
·
2023-03-30 06:20
laya
laya下优雅的节流/去抖装饰器
该库需要在tsconfig中的开启–importHelpers标志使用.项目目录下:npmitslib2.配置tsconfig"
compilerOptions
":{"module":"commonjs"
李尔在此
·
2023-03-30 05:54
Laya
游戏开发
unity
cocos
creator
tsconfig.json配置详解
{"
compilerOptions
":{/*BasicOptions*/"target":"es5"/*target用于指定编译之后的版本目标:'ES3'(default),'ES5','ES2015'
马小帅mm
·
2023-03-29 12:08
自定义NPM工具包(1)
初始化新建文件夹,并执行npminit-y生成package.json文件2、安装typescript执行npminstalltypescript3、添加tsconfig.json代码如下,可以根据需要选择{"
compilerOptions
没有注定的结局
·
2023-03-25 23:55
ts-12 tsconfig.json 配置文件
-tsc--init配置详情"
compilerOptions
":{"incremental":true,//TS编译器在第一次编译之后会生成一个存储编译信息的文件,第二次编译会在第一次的基础上进行增量编译
Tom___
·
2023-03-24 17:27
Vue typeScript: Could not find a declaration file for module '***'. '***' implicitly has an 'any'...
importjs文件时出现的问题,原因网上有很多人解释,但是不清不楚的,没有一个说的明明白白的,所以我也不大懂,只知道解决方案,其中最最简单的方式就是下面这种方案解决方案:tsconfig.json文件中在
compilerOptions
晨煜煌
·
2023-03-23 17:49
tsconfig.json配置说明
{"
compilerOptions
":{//"incremental":true,//是否启用增量编译//"tsBuildlnfoFile":".
dengss
·
2023-03-23 05:24
TS 编译配置
作者:DYBOYhttps://juejin.cn/post/7039583726375796749{"
compilerOptions
":{/*基本选项*/"target":"es6",//指定ECMAScript
花影_62b4
·
2023-03-14 01:47
rollup 打包配置支持 typescript + react
rollup建议node升级到10以上安装typescript安装typescript:npminstalltypescript-Dtypescript配置文件tsconfig.json{"
compilerOptions
奋斗的小小小兔子
·
2023-03-10 23:04
配置项目支持typescript
react为例,配置如下:1安装typescriptnpminstalltypescript--save-dev2初始化tsconfig.jsonnpxtsc--init3配置tsconfig.json{"
compilerOptions
月下yi山人
·
2023-03-09 18:01
webstrom 自动编辑 typescript
1.安装npminstall-gtypescript测试安装是否成功:tsc-v2.创建测试ts文件,在webstrom中打开image.png3.创建tsconfig.json文件{"
compilerOptions
前端_木木
·
2023-02-18 07:40
初始化vue3项目
引入组件hasnodefaultexport.tsconfig.ts添加{
compilerOptions
:{a
前端来入坑
·
2023-02-07 06:05
vite+vue3+ts+element-plus项目搭建
这样就能引入ts,后面不用额外对他进行加入npminitvite@latest二.安装node依赖npmi--save-dev@types/node//引入node模块//tsconfig.json{"
compilerOptions
jjy8040
·
2023-02-05 03:41
vue.js
前端学习
vue.js
typescript
vite
解决tsconfig.json报错
{"$schema":"http://json-schema.org/draft-04/schema#","
compilerOptions
":{}}
Sasoli
·
2023-02-02 17:20
tsconfig.json
tsconfig.json{"compileOnSave":false,"
compilerOptions
":{"baseUrl":"./",//.表示当前文件所在目录,.
苦苦修行
·
2023-02-02 11:30
TS装饰器
例如:@Path('/hello')classHelloSrv{}在tsconfig中要开启{"
compilerOptions
":{"experimentalDecorators":true}}类装饰器
Water水先生
·
2023-01-29 18:21
typescript编译Decorators时报错
Unabletoresolvesignatureofmethoddecoratorwhencalledasanexpression.解决1.配置tsconfig.json---官网推荐(我自己并未解决)"
compilerOptions
子约nan
·
2023-01-28 18:25
tsconfig.json配置信息
初始化tsconfig.ts命令tsc--init{"
compilerOptions
":{//"incremental":true,//增置编译//"tsBuildlnfoFile":".
为了_理想
·
2023-01-28 17:38
create-react-app typescript 配置路径别名
/src/component'),},}tsconfig.json新增如下配置"
compilerOptions
":{......."baseUrl":"src","paths":{"@/*"
黑哥_2c57
·
2023-01-27 11:55
React 的js向ts项目转移配置文件
我们先要进行tsconfig的配置{"
compilerOptions
":{"target":"es5","lib":["dom","dom.iterable","esnext"],"sourceMap"
kim_jin
·
2023-01-27 07:55
如何在VS Code中使用ts-node调试TypeScript
npminitnpminstalltypescript--save-devnpminstallts-node--save-dev目录下新建tsconfig.jsontsc--init打开tsconfig.json,修改如下:{"
compilerOptions
史密斯_Du
·
2023-01-27 05:27
vue报错:“TypeScript intellisense is disabled on template.” 解决
报错警告:TypeScriptintellisenseisdisabledontemplate.Toenable,configure`"jsx":"preserve"`inthe`"
compilerOptions
fanction
·
2023-01-20 19:11
vue.js
javascript
前端
vite+vue3+typescript+pinia 项目搭建
配置vite官网https://vitejs.dev/config/(一)配置别名(1)安装依赖npmi@types/node--save-dev(2)引入node模块//tsconfig.json{"
compilerOptions
-Adam.CHEN
·
2023-01-05 13:31
vue3
vue.js
前端
前端框架
vue
typescript
vue3 vite @路径修改
vite.config.tsconstpath=require('path')resolve:{alias:{'@':path.join(__dirname,'src')}}tsconfig.json{"
compilerOptions
wandoumm
·
2023-01-05 13:29
vue
vue.js
Typescript装饰器AOP示例详解
今天来来介绍一些Typescript里面的装饰器,以及如何用装饰器来实现之前提及装饰模式,装饰器只是实现装饰模式的一种方式,并非唯一配置在Typescript要使用装饰器需要在tsconfig打开装饰器的语法"
compilerOptions
·
2023-01-05 07:16
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他