![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
踩坑日志
Leaf_Yi
这个作者很懒,什么都没留下…
展开
-
Parsing error: Cannot read file ‘c:\users\xxx\desktop\demo\tsconfig.json‘
问题描述nest,按照官方文档走的, 刚搭好得的框架,每个文件开头报错了,但是能运行起来,只不过有个爆红看着属实不舒服Parsing error: Cannot read file 'c:\users\xxx\desktop\demo\tsconfig.json'解决方法.eslintrc.js 文件下新增parserOptions: { tsconfigRootDir: __dirname,}这是我的.eslintrc.js 文件module.exports = { parser原创 2021-11-18 21:35:25 · 2822 阅读 · 0 评论 -
ui组件库table常见坑
vue无法检测变动数组问题描述我们想改变table中第一条数据的值,通过this.list[0]=newValue这样是不会生效的。解决方法假设大家都是使用插槽slot,通过row得知视图上的数据所属JavaScript Array unshift(item1, item2, …, itemX)JavaScript Array splice(index, howmany, item1, …, itemX)//添加数据list.unshift(this.temp);//删除数据原创 2021-10-17 22:51:18 · 243 阅读 · 0 评论 -
vue3 按照官网使用ts简化useStore并返回类型失败的解决方法
前提总结vue3中使用ts简化useStore并且想要返回类型化的store,mian.ts同样需要引用并且使用key值,简化的只是vue文件中使用store时不需要引用\使用key值官网中并没有说明这一点,踩了一上午的坑终于解决了~const app = createApp(App);app.use(store, key).mount('#app');详细步骤vue3官网当使用组合式 API 编写 Vue 组件时,您可能希望 useStore 返回类型化的 store。[重点] mia原创 2021-10-11 11:11:29 · 3381 阅读 · 0 评论 -
踩坑日志 | vue-cli3 跨域配置 404
场景描述vue-cli3脚手架创建,启动项目无异常引入插件及配置,无异常增加vue.config.js,尝试别名配置无异常vue.config.js跨域配置,结果访问404,无法访问资源其中vue.config.js代码如下const path = require('path');function resolve(dir) { return path.join(__dirname, dir);}module.exports = { lintOnSave: true,原创 2021-03-23 16:18:47 · 625 阅读 · 0 评论 -
webpack 踩坑日志 -- 关于css-loader的报错
webpack 踩坑日志问题描述使用webpack对css管理的时候发生了错误引用了 css-loader引用了 style-loader报错如下(node:8904) UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function 以下省略源文件报错位置... at... (Use `node --trace-warnings ...` to show where the w原创 2021-01-25 23:06:31 · 485 阅读 · 0 评论 -
spring事务踩坑报错Caused by: java.lang.NoClassDefFoundError: org/springframework/context/event/EventList
spring事务踩坑报错Caused by: java.lang.NoClassDefFoundError: org/springframework/context/event/EventListenerFactory在练习spring事务管理的时候踩坑,记录一下这个错误报错信息如下:org.springframework.beans.factory.BeanDefinitionStore...原创 2020-05-03 19:17:17 · 3807 阅读 · 3 评论