eslint報錯
升級至webpack4升級時出現的問題
ImportDeclaration should appear when the mode is ES6 and in the module context.
AssertionError [ERR_ASSERTION]: ImportDeclaration should appear when the mode is ES6 and in the module context.
解決方法:
在網上搜了搜是eslint版本的問題,在這裏就升級了一下eslint的版本
從原來的3.19.0 升級至 “eslint”: “5.1.0”