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:
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:
- Created a year ago
- Reactions:17
- Comments:17 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm it works now without pinning.
🎉 This fix is included in version 8.18.1 🎉: https://unpkg.com/browse/@testing-library/dom@8.18.1/dist/@testing-library/dom.esm.js
The release is available on: