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] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- VUE Error: Mixed spaces and tabs [How to Solve]
- [Solved] Vue Project Error: Arrow function should not return assignment
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- [Solved] ESLint error: Newline required at end of file but not found (eol-last)
- [Solved] ✖ 2 problem (1 error, 0 warnings) 2 error and 0 warnings potentially fixable with the`–fix`
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- How to Solve Vue3 Import lodash error
- [Solved] error: Unexpected console statement (no-console)
- [Solved] Failed to load config “prettier“ to extend from.?
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] Failed to load config “react-app“ to extend from.
- Vue Install less Error: While resolving: [email protected]