transloco
transloco copied to clipboard
Bug(scope): Error [ERR_REQUIRE_ESM] when using with playwright
Is there an existing issue for this?
- [X] I have searched the existing issues
Which Transloco package(s) are the source of the bug?
Transloco
Is this a regression?
No
Current behavior
Trying to execute a test with playwright leads to this error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/
I posted a bug ticket there but they were sending me here: https://github.com/microsoft/playwright/issues/14352#issuecomment-1145466917
Expected behavior
Transloco is loaded and can be used to translate UI elements in e2e spec files
Please provide a link to a minimal reproduction of the bug
https://github.com/Wandang/angular-transloco-playwright-test
Transloco Config
Not relevant
Please provide the environment you discovered this bug in
Transloco: 4.1
Angular: 13
Node: 16.15
Package Manager: npm
OS: macOS
Browser
irrelevant
Additional context
Just execute npx playwright test
in the demo project
I would like to make a pull request for this bug
No