zhangyuang / ssr

A most advanced ssr framework support React17/React18/Vue2/Vue3 on Earth that implemented serverless-side render specification.
http://doc.ssr-fc.com/
MIT License
2.59k stars 283 forks source link

初始化项目后语法检查报错 #181

Closed tianull closed 2 years ago

tianull commented 2 years ago

初始化项目后,在web下组件引入都会有如下报错

Brief' is declared but its value is never read.Vetur(6133)
Cannot find module '@/components/brief/index.vue' or its corresponding type declarations.Vetur(2307)

不影响编译,就是开发过程中会一直有错误提示,请问这个该如何处理? ps. 在config.ts中设置alias发现指向的是编译后的地址,开发过程中的 '@'指向的是src目录,不是web

zhangyuang commented 2 years ago

webpack alias跟tsconfig paths是两码事

tianull commented 2 years ago

明白了,谢谢大佬

zhangyuang commented 1 year ago

搞清楚webpack alias跟tsconfig paths是两个东西

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: tianshiwei @.> 发送时间: 2022年4月6日 11:27 收件人: zhangyuang/ssr @.> 抄送: Subscribed @.***> 主题: Re: [zhangyuang/ssr] 初始化项目后语法检查报错 (Issue #181)

初始化项目后,在web下组件引入都会有如下报错 Brief' is declared but its value is never read.Vetur(6133) Cannot find module '@/components/brief/index.vue' or its corresponding type declarations.Vetur(2307)
不影响编译,就是开发过程中会一直有错误提示,请问这个该如何处理? ps. 在config.ts中设置alias发现指向的是编译后的地址,开发过程中的 '@'指向的是src目录,不是web

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>