Skip to content

TypeError: (0 , a.hasTrojanSource) is not a function #5

@travi

Description

@travi

i'm seeing the following error in lockfile updates from renovate:

TypeError: (0 , a.hasTrojanSource) is not a function
 Occurred while linting /home/runner/work/project/project/cucumber.js:1
 Rule: "anti-trojan-source/no-bidi"
     at /home/runner/work/project/project/node_modules/eslint-plugin-anti-trojan-source/dist/index.js:1:709
     at Array.forEach (<anonymous>)
     at onCodePathStart (/home/runner/work/project/project/node_modules/eslint-plugin-anti-trojan-source/dist/index.js:1:667)
     at ruleErrorHandler (/home/runner/work/project/project/node_modules/eslint/lib/linter/linter.js:1076:28)
     at /home/runner/work/project/project/node_modules/eslint/lib/linter/safe-emitter.js:45:58
     at Array.forEach (<anonymous>)
     at Object.emit (/home/runner/work/project/project/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
     at startCodePath (/home/runner/work/project/project/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:437:26)
     at processCodePathToEnter (/home/runner/work/project/project/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:463:13)
     at CodePathAnalyzer.enterNode (/home/runner/work/project/project/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:800:9)

this is one example:

this seems to be related to how this plugin consumes the recent update to the underlying anti-trojan-source package

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions