
bug调试
杏黄的三叶草
对于爱情,只字不提
展开
-
VSCode配置TypeScript的断点调试(详细步骤)
1、准备要调试的ts文件for(let i: number=1;i<10; i++){ console.log("当我唱起这首歌");}2、添加配置文件3、编辑配置文件,用以下代码替换{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configur原创 2022-01-15 17:44:04 · 3219 阅读 · 1 评论 -
Cannot find name ‘console‘. Do you need to change your target library?ging the ‘lib‘ compiler option
错误展示Cannot find name 'console'. Do you need to change your target library?ging the 'lib' compiler option to include 'dom'.2 console.log("当我唱起这首歌"); ~~~~~~~ at createTSError (D:\Software\node-v14.8.0-win-x64\node-global\node_modules\ts-node\sr原创 2022-01-15 17:25:08 · 2456 阅读 · 1 评论 -
You are using the runtime-only build of Vue where the template compiler is not available
webpack打包运行vue程序出现的问题?解决方法:根据错误显示我们知道是runtime-only的问题runtime-only中代码不允许有template存在runtime-compiler中代码可以有template的存在,因为compiler可以用于编译template将runtime-only改成runtime-compiler即可在vue.esm.js中就存在compiler,所以改下配置即可在webpack.cofing.js中配置个属性resolveresolve:{原创 2020-08-31 15:12:30 · 282 阅读 · 0 评论 -
关于webpack下载loader出现的问题(ERROR in ./src/img/timg.jpg Module build failed: ValidationError: File Loade)
很多原因都是版本太高,降低版本即可,先卸载,后安装,命令如下卸载npm uninstall file-loader安装npm install --save-dev file-loader@2.0.0--save-dev表示开发时依赖,@2.0.0表示该包的版本号,有时候也会因为版本号不存在而报错误不清楚版本号的可去官网查看npm官网...原创 2020-08-30 16:44:40 · 574 阅读 · 0 评论