Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'local' of undefined #2899

Closed
glasserc opened this issue Jan 8, 2021 · 1 comment
Closed

TypeError: Cannot read property 'local' of undefined #2899

glasserc opened this issue Jan 8, 2021 · 1 comment
Assignees

Comments

@glasserc
Copy link

@glasserc glasserc commented Jan 8, 2021

I'm trying to move from tslint to eslint for a project at work which is mixed TypeScript/JavaScript. While trying to migrate, I hit this error:

Occurred while linting /home/ethan/Jobs/Teachable/eslint-test-local-undefined/index.ts:1
    at ImportDeclaration (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint-plugin-react/lib/rules/no-typos.js:180:53)
    at /home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
    at NodeEventGenerator.applySelectors (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
    at NodeEventGenerator.enterNode (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
    at CodePathAnalyzer.enterNode (/home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:711:23)
    at /home/ethan/Jobs/Teachable/eslint-test-local-undefined/node_modules/eslint/lib/linter/linter.js:952:32
    at Array.forEach (<anonymous>)

SSCCE: https://github.com/glasserc/eslint-test-local-undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants