Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: Playwright 1.28 unable to load the @js-temporal/polyfill library #19045

Closed
thewilkybarkid opened this issue Nov 24, 2022 · 2 comments
Assignees

Comments

@thewilkybarkid
Copy link

Context:

Code Snippet

import { Temporal } from '@js-temporal/polyfill'
[...]

import PlainDate = Temporal.PlainDate

(source)

Describe the bug

Playwright fails

Running 0 tests using 0 workers

ReferenceError: Temporal is not defined

   at ../src/infrastructure.ts:50

  48 | import { NewPrereview } from './write-review'
  49 |
> 50 | import PlainDate = Temporal.PlainDate

In previous versions it successfully ran. This code is in my server with Playwright runs; TypeScript is able to compile the code and Node run it successfully.

@mxschmitt
Copy link
Member

Bisect: 11eb719...af38449

bad 1.28.0-alpha-oct-20-2022
good 1.28.0-alpha-oct-19-2022

Most likely caused by 9fe72a1.

@dgozman
Copy link
Contributor

dgozman commented Nov 28, 2022

This will be fixed by #19026 in v1.29.

Babel issue: babel/babel#14912, fixed in babel/babel#14913, so bumping @babel/plugin-transform-typescript to 7.20.2 helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants