Problem Description:
Webpack project report expected indentation of 0 spaces but found 2
Solution:
1. Find. Eslintrc.js in the project root directory
2. Add ‘indent’: ‘off’ in the rules tag
3. Restart project NPM run dev
Cause analysis:
Tip: fill in the analysis of the problem here:
for example, there are two ways for the handler to send messages, namely, handler. Obtainmessage() and handler. Sendmessage(). In obtainmessage mode, when the amount of data is too large, due to the limited size of messagequeue, when the message processing is not enough, the first transmitted data will be overwritten, resulting in data loss.
Solution:
Tip: fill in the specific solution to this problem here:
for example, create a new message object, store the read data in message, and then mhandler.obtainmessage (read)_ DATA, bytes, -1, buffer).sendToTarget(); Replace with mhandler. Sendmessage().
Read More:
- Vue Project Error: Expected indentation of 2 spaces but found 4,Newline required at end of file but not found
- [Solved] 20:1 error Expected indentation of 2 spaces but found 4 indent 21:1 error Expected indent
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- VUE Error: Mixed spaces and tabs [How to Solve]
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] Vue Project Error: This relative module was not found
- Vue init webpack Error: unable to verify the first certificate
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue uses webpack to package error: Createapp is not a function
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- Vue Error: component has been registered but not used [Two Methods to Solve]
- Vue scaffold creation project and run error [Solved]
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- vue error: ‘ev’ is defined but never used (no-unused-vars)
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…