Skip to content

Failed to compile when using get method which not from container #15

@miello

Description

@miello

Description

This problem happens when we use variable which contains get method

Minimal reproducible example

https://github.com/miello/poc-issue-what-the-dep/tree/main

Logs

26652 |   }
26653 |   function isDebuggerStatement(node) {
26654 |     return node.kind === 259 /* DebuggerStatement */;
26655 |   }
26656 |   function isVariableDeclaration(node) {
26657 |     return node.kind === 260 /* VariableDeclaration */;
                   ^
TypeError: undefined is not an object (evaluating 'node.kind')
      at isVariableDeclaration (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:26657:12)
      at m (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:8425)
      at visitNode (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87169:21)
      at visitEachChildOfExpressionStatement (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88018:32)
      at visitEachChild (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87419:35)
      at m (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:9698)
      at visitArrayWorker (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87231:51)
      at visitNodes2 (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87202:21)
      at visitLexicalEnvironment (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87258:18)
      at visitEachChildOfSourceFile (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88447:13)
      at visitEachChild (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87419:35)
      at m (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:9698)
      at visitNode (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87169:21)
      at N (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:9734)
      at l (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:11445)
      at visitNode (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87169:21)
      at visitEachChildOfVariableDeclaration (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88128:13)
      at visitEachChild (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87419:35)
      at l (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:11917)
      at visitArrayWorker (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87231:51)
      at visitNodes2 (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87202:21)
      at visitEachChildOfVariableDeclarationList (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88134:13)
      at visitEachChild (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87419:35)
      at l (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:11917)
      at visitNode (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87169:21)
      at visitEachChildOfVariableStatement (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88012:32)
      at visitEachChild (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87419:35)
      at l (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/@softnetics/what-the-dep/dist/chunk-5EBQ5Y5L.cjs:1:11917)
      at visitArrayWorker (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87231:51)
      at visitNodes2 (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87202:21)
      at visitLexicalEnvironment (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:87258:18)
      at visitEachChildOfSourceFile (/home/miello/project/softnetic/poc-issue-what-the-dep/node_modules/typescript/lib/typescript.js:88447:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions