报错集
各种报错集合
阿妖呀
这个作者很懒,什么都没留下…
展开
-
使用ts-node demo.ts命令报错
1.TSError: ⨯ Unable to compile TypeScript:code.ts:1:1 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.1 console.log("hello TS");最近在学习typescript 报了个错, 有点...原创 2021-11-04 21:36:25 · 2304 阅读 · 1 评论 -
vue 打包后找不到dist文件夹
接受一个别人做了一半的项目 , 结果要打包测试的时候 执行npm run build 后 没有dist 文件看了一下 build文件夹里面的index.js 文件 的build对象,原来是默认的打包路劲被修改了 , 修改回来就好了,__dirname是获取当前位置的绝对路径...原创 2021-10-27 11:16:55 · 5328 阅读 · 3 评论 -
✖ 2 problems (0 errors, 2 warnings) 0 errors and 2 warnings potentially fixable with the `--fix`
1. 说有两个警告 , 需要删除一个点 和加一个回车, 但我找不到位置, 所以直接使用 ,2. 报警告的原因, 我创建项目的时候选择了eslint 代码规范,3. 解决办法, 执行npm run lint --fix自动修复警告npm run lint --fix4. 结果, 没有警告了...原创 2021-10-17 19:19:23 · 8095 阅读 · 1 评论