![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
eslint
FWodong
梦想还是要有的,说不定睡醒了呢
展开
-
Prefer default export
这个问题的原因是:eslint的问题,不会影响代码的正常运行解决办法:原因是文件中只有一个 「export const foo = ‘foo’」,再加一个「export const bar = ‘bar’」参考:https://github.com/import-js/eslint-plugin-import/blob/v2.26.0/docs/rules/prefer-default-export.md...原创 2022-04-18 10:23:57 · 2668 阅读 · 0 评论 -
component has been registered but not used
今天遇到了一个很容易,但是也很难的问题:关于添加组件和eslint的规范的问题首先,我添加了一个组件BarChart,import之后,在component中也添加了,但是程序运行的时候,报错,The “BarChart” component has been registered but not used (vue/no-unused-components),意思是该组件未使用,然后我就看类...原创 2019-08-08 09:17:08 · 20723 阅读 · 2 评论