Skip to content

Commit 4190094

Browse files
authored
fix(e2e): Add p-map override to fix React Router 7 test builds (#18068)
Fixes ERR_REQUIRE_ESM error in React Router 7 E2E tests by pinning p-map to v4 which supports CommonJS, resolving incompatibility with @react-router/dev v7.5+ that uses require() instead of dynamic import(). React Router should fix this upstream, this is a workaround now.
1 parent 296c1ca commit 4190094

File tree

2 files changed

+10
-0
lines changed
  • dev-packages/e2e-tests/test-applications

2 files changed

+10
-0
lines changed

dev-packages/e2e-tests/test-applications/react-router-7-framework-node-20-18/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,10 @@
5555
"volta": {
5656
"extends": "../../package.json",
5757
"node": "20.18.2"
58+
},
59+
"pnpm": {
60+
"overrides": {
61+
"p-map": "^4.0.0"
62+
}
5863
}
5964
}

dev-packages/e2e-tests/test-applications/react-router-7-framework-spa-node-20-18/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,10 @@
5353
"volta": {
5454
"extends": "../../package.json",
5555
"node": "20.18.2"
56+
},
57+
"pnpm": {
58+
"overrides": {
59+
"p-map": "^4.0.0"
60+
}
5661
}
5762
}

0 commit comments

Comments
 (0)