question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scope.resolve is not a function when running eslint

See original GitHub issue

When I run eslint from the command line I get the following error:

scope.resolve is not a function
at isIdentifierNumberConstArgument (/home/ali/dev/planty/node_modules/eslint-plugin-cypress/lib/rules/no-unnecessary-waiting.js:59:36)
...

Looks like it’s coming from the no-unnecessary-waiting.js rule. Is this plugin not compatible with eslint 7.8.1 currently?

Lib versions

  • eslint: 7.8.1
  • eslint-plugin-cypress: 2.11.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisbreidingcommented, Sep 28, 2020

🎉 This issue has been resolved in version 2.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

0reactions
ertrzyikscommented, Sep 24, 2020

https://eslint.org/docs/developer-guide/scope-manager-interface#deprecated-members-2 scope.resolve is apparently deprecated and it’s not a problem with typescript-eslint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve Eslint - Module.createRequire is not a function ...
I'm trying to use ESLint but I get this error: ESLint: Initialization error (ESLint). Module.createRequire is not a function. versions:.
Read more >
ScopeManager - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Working with Rules - ESLint - Pluggable JavaScript Linter
When linting text, it returns the value passed to —stdin-filename or <text> if not specified. getScope() - returns the scope of the currently-traversed...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
global-require - ESLint - Pluggable JavaScript Linter
In Node.js, module dependencies are included using the require() function, ... es6*/ // calling require() inside of a function is not allowed function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found