eslint-plugin-import: TypeError on 2.17.0

I receive the following error while running eslint based on airbnb on a long-standing project after updating to 2.17.0.

TypeError: (0 , _ignore.getFileExtensions) is not a function
at checkSourceValue (node_modules\eslint-plugin-import\lib\rules\no-useless-path-segments.js:103:60)
at checkSourceValue (node_modules\eslint-module-utils\moduleVisitor.js:29:5)
at checkSource (node_modules\eslint-module-utils\moduleVisitor.js:34:5)
at listeners.(anonymous function).forEach.listener (node_modules\eslint\lib\util\safe-emitter.js:45:58)
at Array.forEach (<anonymous>)
at Object.emit (node_modules\eslint\lib\util\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (node_modules\eslint\lib\util\node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (node_modules\eslint\lib\util\node-event-generator.js:280:22)
at NodeEventGenerator.enterNode (node_modules\eslint\lib\util\node-event-generator.js:294:14)
at CodePathAnalyzer.enterNode (node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:632:23)

using

"eslint": "5.12.0",
"eslint-config-airbnb": "17.1.0",

Perhaps I have some mistake on my end? If more details are needed please let me know,

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 20
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

v2.17.1 is now published.

v2.4.0 of es-module-utils is published; i’ll also publish v2.17.1 of eslint-plugin-import to bump the dep requirement.

Thanks, I’ll update eslint-module-utils shortly.