● questions:
● the errors are:
css-rcurlyexpected
at-rule or selector expected
Do not use empty rulesets
But the style works normally.
● cause
1. set “vetur.validation.style”: false in setting.json,
2. add @charset “utf-8” to the first line of style;
But the main reason for this is that the page language mode is set incorrectly, just use the default .vue will be set to html mode, so it will report an error
● Solution 1:
Click in to change to Vue mode
● Solution 2:
Set the setting in setting.json to allow the system to modify the language mode of the .vue file to vue by default
"files.associations": {
"*.vue": "vue",
},
Read More:
- Mac Vscode C++ Customize Header File Error: linker command failed
- [Solved] Unity Publish WebGL Error: Unable to parse Build/webTest2.framework.js.gz
- [Solved] Toad Set Error: The following files specified on the Executables tab could not be found:TNS Ping
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- How to Solve Logstash error: failed to execute action
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- Git pull code error fatal: authentication failed fo
- Notes on atom editor_ (11) Editor previews HTML page in real time (add in: atom HTML preview)
- Can’t read property ‘push’ of undefined [How to Solve]
- Uncaught SyntaxError: Cannot use import statement outside a module
- Vue Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- [Cadence Allegro PCB Design] error: Possible pin type conflict GND/VCC Power Connected to Output
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- Android studio does not prompt error messages [How to Solve]
- EGG Error: nodejs.Error: Invalid filename [How to Solve]
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- [GO] The entry file under the main package in golang calls other go file functions and appears undefined
- [Solved] Parsing JSON error unexpected end of JSON input
- The index.nvue page of uniapp reports an error about CSS