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

No sourceCode in context #52

Closed
ayroblu opened this issue Feb 15, 2024 · 2 comments · Fixed by #53
Closed

No sourceCode in context #52

ayroblu opened this issue Feb 15, 2024 · 2 comments · Fixed by #53

Comments

@ayroblu
Copy link

ayroblu commented Feb 15, 2024

I opened this issue: facebook/hermes#1311

But not totally sure where the best place for asking this is, so repeating:

In ft-flow, there is this line:

node_modules/eslint-plugin-ft-flow/dist/rules/defineFlowType.js:75:44

      var newGetScope = context.sourceCode.getScope;

Which errors with:

TypeError: Cannot read properties of undefined (reading 'getScope')

Based on the error, it says while trying to lint this line:

import typeof Yargs from 'yargs';

If I switch to @babel/eslint-parser and version 2.0.3 then it passes just fine.
I updated from 2.0.3 to 3.0.4 due to: facebook/hermes#1285

@Brianzchen
Copy link
Member

Try v3.0.5. Should work now

@ayroblu
Copy link
Author

ayroblu commented Feb 15, 2024

It passes this step thanks!

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

Successfully merging a pull request may close this issue.

2 participants