yarn run lint:Missing file extension "vue" for
☁ vue-admin-template [master] ⚡ yarn run lint
yarn run v1.6.0
(node:1818) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ vue-cli-service lint
error: Missing file extension "vue" for "@/components/common/Master" (import/extensions) at src/views/test/Test.vue:70:24:
68 | </template>
69 | <script>
> 70 | import MasterPage from '@/components/common/Master';
| ^
71 |
72 | export default {
73 | components: {
1 error found.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了:Master要改成Master.vue加.vue后缀,太坑了