Vue3 keeps reporting error: parsing error: unexpected token solution

After looking for a long time, I found that the online solutions didn’t work very well. I tried for two days and finally solved the bug. This solution is only for vue3. After all, vue2, I didn’t encounter this bug. I don’t know whether it works or not

prerequisite

Confirm that the eslint plugin Vue dependency is installed

Reference address

Vue3 + JS solution

Add the following configuration in the. Eslint.js configuration file

Vue3 + TS solution

OK, these are the vue3 error reporting solutions I sorted out. If you like, praise the collection!

Similar Posts: