引入动态组件报错,增加.eslintrc.js中的rules字段,报错解决

    1. // .vue
    2. {
    3. ...
    4. computed: {
    5. someCall() {
    6. return () => import(`@/component/some.vue`)
    7. }
    8. }
    9. }
    10. // TypeError:Cannot read property 'range' of null
    1. // .eslintrc.js
    2. ...
    3. rules : {
    4. "template-curly-spacing" : "off",
    5. indent : "off"
    6. }