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
[BUG] "Cannot import a typescript file from an esmodule" #13191
Comments
Can you link to a repo that we can clone and run and observe the error? This will ensure we are debugging based on the correct information/package.json. This might be related to #13078 which was recently resolved on main branch. You can try with the upcoming version by doing:
Let us know how it goes! |
I'm getting this on 1.20.1 and not 1.20.0 as well. svelte-kit, 1.0.0-next.303 |
Does it work if you do:
|
Hello, sorry for the late reply. Yes it does work. Note: It requires the playwright.config.js file to be renamed to playwright.config.ts (which thankfully, is mentioned in the output upon execution). |
Thanks for the update! |
Fixed for me as well. Thanks for the help! @rwoll |
I created a new project using |
@khaki32 Can you file a new issue to be triaged? Please include a link to a repo of your test project we can clone and download to observe the error! Thanks! |
npm run test does not work... error with playwright |
Context:
System:
OS: macOS 12.3
Memory: 115.30 MB / 16.00 GB
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
npm: 6.14.13 - ~/.nvm/versions/node/v15.14.0/bin/npm
Languages:
Bash: 3.2.57 - /bin/bash
Describe the bug
Getting
Cannot import a typescript file from an esmodule
when runningnpx playwright test
This issue only happens on version
1.20.1
. I fix it by going back to version1.20.0
The text was updated successfully, but these errors were encountered: