mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: mention node 16 requirement for ts + esm (#15866)
This commit is contained in:
parent
618941fc68
commit
532cf45393
@ -67,6 +67,10 @@ test('example', async ({ page }) => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:::note
|
||||||
|
TypeScript with ESM requires Node.js 16 or higher.
|
||||||
|
:::
|
||||||
|
|
||||||
## TypeScript path mapping
|
## TypeScript path mapping
|
||||||
|
|
||||||
If you use [path mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) in your `tsconfig.json`, Playwright Test will pick it up. Make sure that `baseUrl` is also set.
|
If you use [path mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) in your `tsconfig.json`, Playwright Test will pick it up. Make sure that `baseUrl` is also set.
|
||||||
|
|||||||
@ -30,7 +30,11 @@ await page.evaluate(`(async() => {
|
|||||||
|
|
||||||
### ReferenceError: URL is not defined
|
### ReferenceError: URL is not defined
|
||||||
|
|
||||||
Playwright requires Node.js 14 or higher. Node.js 8 is not supported, and will cause you to receive this error.
|
Playwright requires Node.js 14 or higher.
|
||||||
|
|
||||||
|
### Unknown file extension ".ts"
|
||||||
|
|
||||||
|
Running TypeScript tests in `"type": "module"` project requires Node.js 16 or higher.
|
||||||
|
|
||||||
# Please file an issue
|
# Please file an issue
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user