// An error is reported when the component is imported asynchronously
Scenario: Vue routing lazy loading
1. Suspected reason: eslint verification is before Babel parsing
My final solution: add configuration in the eslint configuration file (.eslintrc.js)
"parserOptions": {
"parser": "babel-eslint"
},
Similar Posts:
- Expected indentation of 8 spaces but found [How to Solve]
- [Solved] Vue3.X version error: Parsing error: Parsing error: Unexpected token
- How to Solve error: Unexpected console statement (no-console)
- How to Solve Eslint syntax error in Vue project
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error
- vue ESLint: ‘common’ is not defined. (no-undef)
- [Solved] Error: loading chunk * failed, Vue router lazy loading error
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- [vue/no-parsing-error] Parsing error: invalid-first-character-of-tag-name.eslint-plugin-vue Parsing error: invalid-first-character-of-tag-name.eslint(vue/no-parsing-error)
- Error: loading chunk * failed, Vue router lazy loading error problem solution