-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 'forEach' of null #717
Comments
Possibly related to #348 because I'm using
|
Confirmed that this bug happens when using exports like in the comment above. Line of code: ExportMap.js#L154 |
Found more details. This was causing the issue:
export * from 'warna'; Replaced it by: export const darken = warna.darken;
export const lighten = warna.lighten; and now the error is gone. |
this same I suspect there's a bug with |
Yes |
Run into this as well. Any workaround? |
@jamiter check your |
What is the workarround ? |
|
reopening to remember to create test |
Same problem if I use this (ember 3.1) export default {
name: 'zero',
initialize: initialize
}; |
@leoplct can you file a separate issue for that? |
I can't really enumerate all the exports of the dependency I have. Rather, I could, but it would be pretty obnoxious because the dep is |
@rjhilgefort is this still an issue with the latest version? |
I believe so. I just upgraded to TypeError: Cannot read property 'size' of null
at dependencies.forEach.dep (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint-plugin-import/lib/ExportMap.js:71:51)
at Set.forEach (<anonymous>)
at ExportMap.get size [as size] (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint-plugin-import/lib/ExportMap.js:71:23)
at processBodyStatement (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint-plugin-import/lib/rules/namespace.js:77:30)
at Array.forEach (<anonymous>)
at Program (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint-plugin-import/lib/rules/namespace.js:95:14)
at listeners.(anonymous function).forEach.listener (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint/lib/util/safe-emitter.js:47:58)
at Array.forEach (<anonymous>)
at Object.emit (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint/lib/util/safe-emitter.js:47:38)
at NodeEventGenerator.applySelector (/Users/rjhilgefort/Projects/charter/distillery-lint/node_modules/eslint/lib/util/node-event-generator.js:251:26) Though, |
the internal Map in |
@rjhilgefort i think your issue will be fixed in the next release. Leaving this open so a test can be added. |
Awesome, thanks for the update and the work on this project! |
I'm using
airbnb
rules onWebStorm
editor.My
.eslintrc
is the following:The text was updated successfully, but these errors were encountered: