Skip to content

解决Cannot read property 'range' of null  #49

Description

@webplus

eslint的包版本引起的问题,尝试降级处理 npm i babel-eslint@8.0.1

Module build failed (from ./node_modules/eslint-loader/index.js):
TypeError: Cannot read property 'range' of null
Occurred while linting ./Editor.vue:114
at SourceCode.getTokenBefore (node_modules/eslint/lib/source-code/token-store/index.js:298:18)
at checkSpacingBefore /node_modules/eslint/lib/rules/template-curly-spacing.js:60:42)
at TemplateElement (/node_modules/eslint/lib/rules/template-curly-spacing.js:119:17)
at listeners.(anonymous function).forEach.listener (/node_modules/eslint/lib/linter/safe-emitter.js:45:58)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions