We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SyntaxError: Unexpected token 'with'
This is duplicate of #28598 - which was closed with no reason
1.40.1
My test is importing a file that has such an import:
import config from './config.json' with {type: 'json'};
Background: I have a vite x TS x react project. Inside package.json I have explicitly set ESM:
package.json
"type": "module",
No SyntaxError
When I run playwright test, I get following error:
> playwright test -c playwright/playwright.config.ts SyntaxError: Unexpected token 'with'
No response
System: OS: Windows 10 10.0.19045 CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 14.48 GB / 31.78 GB Binaries: Node: 21.5.0 - C:\Program Files\nodejs\node.EXE npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD pnpm: 8.13.1 - ~\AppData\Local\pnpm\pnpm.EXE IDEs: VSCode: 1.87.2 - C:\Users\NichitaPasecinic\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
The text was updated successfully, but these errors were encountered:
feat(esm): support import attributes (#30482)
f5ca524
Fixes #30473
Good stuff, thanks! 🎉
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This is duplicate of #28598 - which was closed with no reason
Version
1.40.1
Steps to reproduce
My test is importing a file that has such an import:
Background: I have a vite x TS x react project. Inside
package.json
I have explicitly set ESM:Expected behavior
No SyntaxError
Actual behavior
When I run playwright test, I get following error:
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: