![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
liuxingyu_1
虽不善言辞,但也爱探个究竟
展开
-
Cannot find module ‘@/xxx‘ or its corresponding type declarations.Vetur(2307)
问题开发 vue3 + ts 项目,使用了 monorepo 多个项目在同一个仓储,但是在 script 标签里引 ts 文件报错了,vetur 插件没有应用项目下 tsconfig 配置,报了如下的错误Cannot find module '@/services/utils' or its corresponding type declarations.Vetur(2307)解决办法最后找到解决办法,在仓储根目录下添加 vetur.config.js 文件,把几个项目的目录配置在 projec原创 2021-08-09 00:53:47 · 5969 阅读 · 1 评论 -
webpack devServer启动后报错 “Cannot GET /xxx“ 解决办法
问题背景在开发一个后台项目的过程中,其 publicPath 前缀为 /admin,然后用 webpack devServer 启动的时候,访问二级目录 /admin/tasks 的时候报了如下错误: "catnot get /admin/tasks"原创 2021-09-09 01:14:28 · 2151 阅读 · 0 评论