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.

Reference Error "X is not defined"

See original GitHub issue

@leonardfactory @wtho When working with Nestjs and aws sdk, any injections of AWS sdk are not being tranformed properly. I think the issue is somewhere in here. when the condition expression fails for typeof Type === 'undefined' ? Object : Type it falls back to default type which for example is AWS.S3 and later js has no idea of how to resolve AWS.

reproduction of the issue is here. The original issue was filed in babel repro as #12150

Happy to work on this, but will need more guidence on what actually needs to be fixed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
whimzyLivecommented, Oct 13, 2020

@leonardfactory Yeah, it’s working. Thanks.

0reactions
leonardfactorycommented, Oct 13, 2020

Hi @whimzyLive! v0.3.1 is out, let me know if it’s working right now so we can close the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
ReferenceError: "x" is not defined. The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >
ReferenceError: "x" is not defined - JavaScript
There is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in...
Read more >
javascript - Uncaught ReferenceError: x is not defined
The user input is delegated to a separate function so that I may expand the program to subtraction, multiplication and division without ...
Read more >
What's ReferenceError: x is not defined in JavaScript? - Frendly
The ReferenceError is an error thrown by the JavaScript engine when it looks to find a variable or function within the available scope...
Read more >
ReferenceError: "x" is not defined - Javascript
There is a non-existent variable referenced somewhere. This variable needs to be declared, or you need make sure it is available in your...
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