vue component name error

            The most common problems that newbies who are new to Vue can solve in one step

   The component name "Home" of this kind of error reporting error should always be a multi-word vue/multi-word component name.

 You can use special comments to disable certain warnings.

Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in the file.

I think the most practical way is to find the vue.config.js file in the directory

 

Add this code in the file::

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,  //检查命名规范
})

Then it's almost done and the problem can be perfectly solved.

 

Guess you like

Origin blog.csdn.net/m0_73358221/article/details/127782076