Solution 1: in eslintrc. JS env add configuration
env: {
'vue/setup-compiler-macros': true // New
}
An error may be reported when the development service is restarted after configuration:
Environment key “vue/setup-compiler-macros” is unknown
Recompile again and the error disappears.
Solution 2: add global configuration in eslintrc.js
globals: {
defineProps: "readonly",
defineEmits: "readonly"
}
Read More:
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- Tensorflow C++:You must define TF_LIB_GTL_ALIGNED_CHAR_ARRAY for your compiler
- [Solved] An error occurred while processing your request…enable the Development environment by setting …
- [Solved] Parsing error: The keyword ‘import‘ is reserved
- [Solved] eslint Error: error Parsing error: Unexpected token <
- openlayers — Cannot read property ‘slice‘ of null—Map cannot be loaded
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- [Solved] Error: e0020 does not define identifier “sleep”“
- Cmake compile cocos2d-x error [How to Solve]
- Appium Top 10 Common Error [How to Solve]
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- [Solved] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- [Solved] eclipse Error: Error:A JNI error has occurred, please check your installation and try again
- [Solved] UserWarning: CUDA initialization: CUDA unknown error
- Error reported with decorator in vue: Parsing error: Decorators cannot be used to decorate object literal properties
- Flutter upgrade upgrade SDK SSL_ERROR_Syscall error [How to Solve]
- Eslint Error:“Identifier xxx is not in camel case“
- [Solved] TwinCAT3 Error: Ads error: 4115 (0x1013, RTIME: system clock setup fails.
- When using postman assertion, the global variables set in the tests of the pit will take effect only after the interface is executed
- [Solved] LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443