You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node:internal/modules/esm/get_format:160
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
^
TypeError: Unknown file extension ".ts" for K:\source\playwright-bdd-example\playwright.config.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:143:22)
at ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at link (node:internal/modules/esm/module_job:76:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
But I expect
Bdd scenarios to be transformed to playwright tests and run
Isolated demo
Reproduced using the example demo and setting type:module
Hi @kmedara ! Thanks for highlighting that.
I've created a working example in ESM. Could you check the diff and let me know does it work in your vite + vue3 setup.
I will update getting starting section in docs for ESM.
Given
"type":"module"
When
npx bddgen && playwright test
Then
But I expect
Bdd scenarios to be transformed to playwright tests and run
Isolated demo
Reproduced using the example demo and setting
type:module
Environment
I've tried a few working arounds listed here but to no avail
cross-env NODE_OPTIONS=\"--loader ts-node/esm\"
beforenpx bddgen && playwright test
The text was updated successfully, but these errors were encountered: