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.
Jun.02,2022

solved: Master should be changed to Master.vue plus .vue suffix, which is too lame

import MasterPage from '@/components/common/Master.vue';

clipboard.png

Menu