Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix Cannot find module '@testIsomorphic/types' in recorder (#36414)

Max Schmitt896cb8536e7c
diff --git a/packages/recorder/tsconfig.json b/packages/recorder/tsconfig.json
index 166ee1a010..4defa85f64 100644
--- a/packages/recorder/tsconfig.json
+++ b/packages/recorder/tsconfig.json
@@ -20,6 +20,7 @@
"@isomorphic/*": ["../playwright-core/src/utils/isomorphic/*"],
"@protocol/*": ["../protocol/src/*"],
"@recorder/*": ["../recorder/src/*"],
+ "@testIsomorphic/*": ["../playwright/src/isomorphic/*"],
"@web/*": ["../web/src/*"],
}
},
diff --git a/packages/recorder/tsconfig.node.json b/packages/recorder/tsconfig.node.json
index e993792cb1..a336f895aa 100644
--- a/packages/recorder/tsconfig.node.json
+++ b/packages/recorder/tsconfig.node.json
@@ -2,7 +2,8 @@
"compilerOptions": {
"composite": true,
"module": "esnext",
- "moduleResolution": "node"
+ "moduleResolution": "node",
+ "allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}