vue3报错 エラー 1 つのエラーでコンパイルに失敗しました 特別なコメントを使用して、いくつかの警告を無効にすることができます。う

問題の説明

 ERROR  Failed to compile with 1 error                                                                                                                                                                  16:17:24

[eslint]
C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\src\components\a1.vue
  1:1  error  Component name "a1" should always be multi-word  vue/multi-word-component-names

✖ 1 problem (1 error, 0 warnings)


You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in [eslint]
C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\src\components\a1.vue
  1:1  error  Component name "a1" should always be multi-word  vue/multi-word-component-names

✖ 1 problem (1 error, 0 warnings)

解決

一連の考え

非常に多くの間違いはすべて eslint の厳密な形式が原因です
。eslint の厳密な形式をオフにするだけです

方法

vue.config.js ファイルをルート ディレクトリに直接作成します。キー コードはlintOnSave: false,

const {
    
     defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    
    
  lintOnSave: false,
})

おすすめ

転載: blog.csdn.net/weixin_48998573/article/details/129883076
おすすめ