You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the fix imports command, variables that are noted as keys in objects like so are not imported:
constbla={[MY_VAR]: 'gegwg'}
I tried logging all the nodes inside the function normalizeNode and it is shown that:
node.name is MY_VAR, context.key is key, context.parent is ObjectProperty.
Wow, good catch! Thanks! These bugs can usually be solved pretty quickly with a test-driven approach (`findUndefinedIdentifiers-test.jsx), but knowing how tricky this bit of code is it's probably easiest for me to address. I'll push something soon.
When running the fix imports command, variables that are noted as keys in objects like so are not imported:
I tried logging all the nodes inside the function normalizeNode and it is shown that:
node.name is MY_VAR, context.key is key, context.parent is ObjectProperty.
Then I tried the same logging for:
And saw that there is no difference between them in the logged information, so I can't make an if/else statement inside function normalizeNode.
Can you fix that or tell how to fix it myself?
Thanks in advance.
The text was updated successfully, but these errors were encountered: