The console error message is as follows
F:\aaaaa\dice-front\store\tag.js
1:30 error Delete `␍` prettier/prettier
2:11 error Delete `␍` prettier/prettier
3:3 error Delete `␍` prettier/prettier
4:1 error Delete `␍` prettier/prettier
5:27 error Delete `␍` prettier/prettier
Solution 1: automatically identify the end
Add this to the first set in the project .pretierrc file.
"endOfLine": "auto"
Solution 2:
In the project In the .editorconfig file, Change end_of_line to CRLF. (used globally if possible)
Reason: git ends with CRLF and LF on different computers
The newline characters of text files under windows and Linux are inconsistent.
During line feed
windows uses both carriage return character Cr (carriage return character) and line feed character LF (linefeed character)
Mac and Linux systems only use the line feed LF
the old MAC system used the carriage return CR.
Read More:
- [Solved] Vue3 Error: error Delete `··` prettier/prettier
- [Solved] ESLint: Parsing error: Unexpected token(prettier/prettier)
- [Solved] Failed to load config “prettier“ to extend from.?
- eslint Error: Delete `␍` [How to Solve]
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- Full screen scrolling by Vue + Vue awesomeswiper
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- Vue warn]: vue3 element Component emit Pass Event Error
- Vue installation @ Vue/cli error: npmerr gyp err
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- [Solved] Vue3 Error: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. P
- VUE Error: Vue Error in nextTick: “RangeError: Maximum call stack size exceeded“
- [Solved] Vue Project Error: error ‘v-model‘ directives require no argument vue/valid-v-model
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] vue error: error Component name “School“ should always be multi-word vue/multi-word-component-names
- VUE Error: Mixed spaces and tabs [How to Solve]