● 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:
- [Fixed] Typeerror: error 1009: Cannot access properties or methods referenced by an empty object
- [Local Precompilation Error] do not set execute permissions for source files
- flask init-db Error: Error: Could not locate a Flask application. Use the ‘flask –app’ option, ‘FLASK_APP’ environment variable, or a ‘wsgi.py’ or ‘app.py’ file in the current directory.
- [Solved] ESP32 Error: error: expected initializer before ‘__result_use_check‘
- [Go] Solve the empty interface interface{} cannot use (type []string) as type []interface {}
- error: expected ‘;‘ at end of member declaration and expected ‘)‘ before ‘&‘ toke Errors
- Vue+TS main.ts error: unused expression, expected an assignment or function call
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- Go declares that the local variable does not use command line arguments. Main. Go: 4:6: a declared but not used
- SAP RETAIL Automatic replenishment WRP1R transaction code error: Forecast values for determining target stock do not exist –
- No match for ‘operator =’ both ends of the equal sign do not match
- How to Solve Altium designer Rule Check Without an Error Issue
- [Solved] MDK Compile Error: error:No section matches selector – no section to be FIRST/LAST
- Eslint error “no undef” and eslint rule configuration in Vue cli3
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- [Solved] – npm run dev Error: listen EADDRINUSE: address already in use :::8000(or 8080 etc.)
- [Solved] RK3399 Compile UBOOT Error: No rule to make target , needed by
- [Solved] Use the truss console to connect to the public blockchain network error: mnemonic invalid or undefined
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- [Solved] Vue Error: Failed to mount component: template or render function not defined