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:
- The browser is compatible with IE11 “ReferenceError: ‘Promise’ is not defined” “ReferenceError: ‘Promise’ is not defined”
- [Solved] Electron Error: ReferenceError: require is not defined
- [Solved] Parcel Service Error: regeneratorRuntime is not defined
- [Solved] Uncaught ReferenceError: FileAsyncWriter is not defined
- errorThrown:ReferenceError: data is not defined [How to Solve]
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] Eval Error: Uncaught ReferenceError: False is not defined
- cloud.callFunction:fail Error:wx is not defined [How to Solve]
- [Solved] Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick
- How to Solve jQuery error: Uncaught ReferenceError: $ is not defined
- [Solved] emcc error: error: LLVM_ROOT is not defined
- VUE: Property or method “deleteFun“ is not defined on the instance but referenced during render. [How to Fix]
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- Bin File Programming Failed, could not find core in coresight setup, erase error
- [Solved] matlab error: try to write SCRIPT vl_sift is executed as a function
- [Uniapp] Solve the error plus not defined when pushing
- R Language Error: variable does not have limits defined by datadist
- C++ new types may not be defined in a return type Error?
- Error 1406.Setup cannot write the value Microsoft
- [Solved] Vue Error: Failed to mount component: template or render function not defined