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

Cannot read property 'namespace' of null #1144

Closed
riophae opened this issue Jul 27, 2018 · 0 comments · Fixed by #1235
Closed

Cannot read property 'namespace' of null #1144

riophae opened this issue Jul 27, 2018 · 0 comments · Fixed by #1235

Comments

@riophae
Copy link

riophae commented Jul 27, 2018

eslint version: 5.2.0
eslint-plugin-import version: 2.13.0
Minimal reproduction: https://github.com/riophae/eslint-plugin-import-bug

Steps to reproduce:

git clone git@github.com:riophae/eslint-plugin-import-bug.git
cd eslint-plugin-import-bug
npm install
npm test

Got this:

[/mnt/d/Projects/eslint-plugin-import-bug]$ npm test

> eslint-plugin-import-bug@ test /mnt/d/Projects/eslint-plugin-import-bug
> eslint .

Cannot read property 'namespace' of null
TypeError: Cannot read property 'namespace' of null
    at testKey (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint-plugin-import/lib/rules/namespace.js:194:69)
    at VariableDeclarator (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint-plugin-import/lib/rules/namespace.js:199:9)
    at listeners.(anonymous function).forEach.listener (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/util/safe-emitter.js:45:58)
    at Array.forEach (<anonymous>)
    at Object.emit (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/util/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/util/node-event-generator.js:251:26)
    at NodeEventGenerator.applySelectors (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/util/node-event-generator.js:280:22)
    at NodeEventGenerator.enterNode (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/util/node-event-generator.js:294:14)
    at CodePathAnalyzer.enterNode (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:632:23)
    at nodeQueue.forEach.traversalInfo (/mnt/d/Projects/eslint-plugin-import-bug/node_modules/eslint/lib/linter.js:860:28)
npm ERR! Test failed.  See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants