[Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2  

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: