-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Description
错误内容:
error TS6504: File 'D:/xxxx/src/components/svg-icon/index.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Matched by include pattern 'src/**/*' in 'xxxx/tsconfig.json'
tsconfig.json:18:15
18 "include": ["src//*", "src//*.vue"],
~~~~~~~~~~
File is matched by include pattern specified here.
解决过程
在tsconfig.json中添加"allowJs": true,后仍然报错,怀疑是否是缓存原因,将/svg-icon/index.vue改名为/svg-icon/test.vue后报错组件名称仍然为/svg-icon/index.vue,因此判断缓存导致的报错。
接着,我又清理了npm缓存,再次进行打包,还是报错。
Metadata
Metadata
Assignees
Labels
No labels