Vue item error arrow function should not return assignment
Problem source
Recently, there was an error arrow function should not return assignment
when creating a startup Vue project. In fact, there is more than one error, but the final reason is that the eslint check code is referenced.
Solution:
1. Modify the code to comply with the rules of eslint (this method does not take effect here)
add {} to the code after the arrow; however, it reports this error again (I don’t know how to solve this error up to now)
2. Remove eslint
and comment ‘standard’
in the. Eslintrc.js file under the project root directory
Read More:
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue3.2 Error: Object.fromEntries is not a function
- [Solved] Vue uses webpack to package error: Createapp is not a function
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- [Solved] Vue Error: template or render function not defined
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Solved] Vue Project Error: This relative module was not found
- [Solved] electron-vue project error: Object.fromEntries is not a function electron-vue
- VScode vue Project Error: Property ‘xxx‘ does not exist on type ‘CombinedVueInstance<{ readyOnly…Vetur(2339)
- [Solved] Vue Project Error: error ‘v-model‘ directives require no argument vue/valid-v-model
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Vue Project startup error: no eslint configuration found
- Vue Project Error: Expected indentation of 2 spaces but found 4,Newline required at end of file but not found
- [Solved] Vue Project Startup Error: getaddrinfo ENOTFOUND xxx
- Vue Project Error: Proxy error: Could not proxy request [How to Solve]