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.

Nullish coalescing operator (??) in dist in 8.18.0

See original GitHub issue

@testing-library/dom@8.18.0 has a nullish coalescing operator in the distributed build in the file dist/@testing-library/dom.esm.js. This results in only Node.js 14 and up being able to execute this code and in errors in Cypress 9.1.0: image

Check here, 8.17.1, lines 409 to 413: https://unpkg.com/browse/@testing-library/dom@8.17.1/dist/@testing-library/dom.esm.js

And in 8.18.0, lines 428 to 430: https://unpkg.com/browse/@testing-library/dom@8.18.0/dist/@testing-library/dom.esm.js

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:17
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
sneridaghcommented, Sep 20, 2022

I can confirm it works now without pinning.

3reactions
eps1loncommented, Sep 19, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Nullish coalescing operator (??) - JavaScript - MDN Web Docs
The nullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null ...
Read more >
Nullish coalescing operator '??' - The Modern JavaScript Tutorial
The nullish coalescing operator ?? provides a short way to choose the first “defined” value from a list. It's used to assign default...
Read more >
Nullish coalescing operator (??) - Level Up Coding
The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is null ...
Read more >
Nullish Coalescing Operator (??) In JavaScript - What Is It And ...
The Nullish Coalescing Operator allows us to check if a value is null or undefined, and provide a fallback value if that is...
Read more >
Typescript can't understand nullish-coalescing - Stack Overflow
I'm using an external package ( @moj/pagination-layout ) inside Vue + TypeScript app, this package uses nullish operator inside of it but ...
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