test: reproduce error with monorepo and ui library #4530
Annotations
5 errors, 6 warnings, and 1 notice
Run pnpm exec playwright test --forbid-only --shard=4/4:
packages/waku/dist/lib/builder/build.js#L35
1) [webkit] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ─
Error: Command failed: node /Users/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 52ms
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ../packages/waku/dist/lib/builder/build.js:35
33 | return;
34 | }
> 35 | defaultHandler(warning);
| ^
36 | };
37 | const analyzeEntries = async (rootDir, config)=>{
38 | const wakuClientDist = decodeFilePathFromAbsolute(joinPath(fileURLToFilePath(import.meta.url), '../../../client.js'));
at viteWarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (file:///Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger [as onLog] (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/Users/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/Users/runner/work/waku/waku/packages/waku/package.json'
]
}
Node.js v20.8.0
at viteWarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (/Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at /Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at /Users/runner/work/waku/waku/e2e/use-ui-library.spec.ts:23:5
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
packages/waku/dist/lib/builder/build.js#L35
1) [webkit] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Command failed: node /Users/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 38ms
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ../packages/waku/dist/lib/builder/build.js:35
33 | return;
34 | }
> 35 | defaultHandler(warning);
| ^
36 | };
37 | const analyzeEntries = async (rootDir, config)=>{
38 | const wakuClientDist = decodeFilePathFromAbsolute(joinPath(fileURLToFilePath(import.meta.url), '../../../client.js'));
at viteWarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (file:///Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger [as onLog] (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/Users/runner/work/waku/waku/packages/waku/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/Users/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js'
]
}
Node.js v20.8.0
at viteWarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (/Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at /Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
packages/waku/dist/lib/builder/build.js#L35
1) [webkit] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ─
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Command failed: node /Users/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 39ms
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ../packages/waku/dist/lib/builder/build.js:35
33 | return;
34 | }
> 35 | defaultHandler(warning);
| ^
36 | };
37 | const analyzeEntries = async (rootDir, config)=>{
38 | const wakuClientDist = decodeFilePathFromAbsolute(joinPath(fileURLToFilePath(import.meta.url), '../../../client.js'));
at viteWarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (file:///Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger [as onLog] (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/Users/runner/work/waku/waku/packages/waku/package.json',
'/Users/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js'
]
}
Node.js v20.8.0
at viteWarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (/Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at /Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
packages/waku/dist/lib/builder/build.js#L35
1) [webkit] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ─
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Command failed: node /Users/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 42ms
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ../packages/waku/dist/lib/builder/build.js:35
33 | return;
34 | }
> 35 | defaultHandler(warning);
| ^
36 | };
37 | const analyzeEntries = async (rootDir, config)=>{
38 | const wakuClientDist = decodeFilePathFromAbsolute(joinPath(fileURLToFilePath(import.meta.url), '../../../client.js'));
at viteWarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (file:///Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (file:///Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger [as onLog] (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/Users/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/Users/runner/work/waku/waku/packages/waku/package.json',
'/Users/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/Users/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/Users/runner/work/waku/waku/packages/waku/dist/router/server.js'
]
}
Node.js v20.8.0
at viteWarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65471:17)
at onwarn (/Users/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65501:5)
at onwarn (/Users/runner/work/waku/waku/node_modules/.pnpm/vite@5.4.1_@types+node@22.4.1_terser@5.31.6/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:65166:7)
at /Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:18646:13
at Object.logger (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20301:9)
at ModuleLoader.handleInvalidResolvedId (/Users/runner/work/waku/waku/node_modules/.pnpm/rollup@
|
Run pnpm exec playwright test --forbid-only --shard=4/4
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, actions/cache@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › use-router.spec.ts#L1
[webkit] › use-router.spec.ts took 1.2m
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › multi-platform.spec.ts#L1
[webkit] › multi-platform.spec.ts took 31.6s
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › ssg-performance.spec.ts#L1
[webkit] › ssg-performance.spec.ts took 17.1s
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › partial-builds.spec.ts#L1
[webkit] › partial-builds.spec.ts took 15.6s
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "playwright-report-macos-latest-18.17.0-1", "playwright-report-macos-latest-18.17.0-2", "playwright-report-macos-latest-18.17.0-3", "playwright-report-macos-latest-18.17.0-4", "playwright-report-macos-latest-20.8.0-1", "playwright-report-macos-latest-20.8.0-2", "playwright-report-macos-latest-20.8.0-3", "playwright-report-macos-latest-20.8.0-4", "playwright-report-ubuntu-latest-18.17.0-1", "playwright-report-ubuntu-latest-18.17.0-2", "playwright-report-ubuntu-latest-18.17.0-3", "playwright-report-ubuntu-latest-18.17.0-4", "playwright-report-ubuntu-latest-20.8.0-1", "playwright-report-ubuntu-latest-20.8.0-2", "playwright-report-ubuntu-latest-20.8.0-3", "playwright-report-ubuntu-latest-20.8.0-4", "playwright-report-windows-latest-18.17.0-1", "playwright-report-windows-latest-18.17.0-2", "playwright-report-windows-latest-18.17.0-3", "playwright-report-windows-latest-18.17.0-4", "playwright-report-windows-latest-20.8.0-1", "playwright-report-windows-latest-20.8.0-2", "playwright-report-windows-latest-20.8.0-3", "playwright-report-windows-latest-20.8.0-4".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Run pnpm exec playwright test --forbid-only --shard=4/4
1 failed
[webkit] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ──
3 skipped
78 passed (3.5m)
|
Loading