Introduction of elementui
Add the following in main.js of src:
import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
Vue.use(Element)
Introduce error reporting
Errors:
1 http://eslint.org/docs/rules/quotes
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.
Solution:
In the build/webpack.base.conf.js file, comment out or remove the rule about eslint in: module->rules
Then re-execute the command: npm run dev
It’s normal
Read More:
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- ERROR in [eslint] ESLint is not a constructor (How to Solve)
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] ESLint error: Newline required at end of file but not found (eol-last)
- Vue elementui: solution for error: avoided redundant navigation to current location: “/xxx”
- How to Solve Vscode save Vue file eslint error
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- [Solved] ESlint Create New File Error: Component name “Home” should always be multi-word.
- Vuejs composite ElementUI component library error
- [Solved] ESLint:TypeError: this.CliEngine is not a constructor
- vue eslint error ‘process‘ is not defined no-undef [How to Solve]
- eslint Error: Delete `␍` [How to Solve]