-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] ReferenceError: module is not defined in ES module scope (with sveltekit) #12138
Comments
There is a similar discussion in #11755. |
Is there an issue to track #7121 is locked, and the last comment says: "Please file new feature requests for it or create separate bug reports if you encounter issues.". and the last comments in #11755 doesn't seem to be getting any attentions from devs. If I use |
This issue is as good as any 😄
This is interesting. Let us take a look. |
@dgozman just ran across this myself with SvelteKit, and dug some more. I found this inside the kit docs
change |
EDIT: not sure yet but it looks like |
@bbigras this is what I'm using, seems to work fine with current sveltekit (as of today
|
It seems I needed Thank you very much @qbunt 😄 |
Yes it worked. For #11755 (so with Typescript) the solution is different for me: ts
js
|
Using
node version: v16.14.0 Any hint? |
@frederikhors That looks to me like Windows file path hijinks. They discuss this in nodejs/node#31710 maybe this is something in either SvelteKit or Playwright 🤷 Maybe WSL can help? |
WSL is not a joy to use. I would love to use Windows normally. |
Closing since the original issue seems solved see here: #12138 (comment) @frederikhors please file a separate issue. |
these don't work out the box with svelte it seems microsoft/playwright#12138
Yes, instead of the |
Context:
System:
Binaries:
Languages:
Code Snippet
https://github.com/bbigras/sveltekit_playwright_githubactions
or
Describe the bug
I can't figure out how to use playwright with sveltekit (no typescript).
I get:
The text was updated successfully, but these errors were encountered: