test: reproduce error with monorepo and ui library #4530
Annotations
6 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 /home/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 68ms
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/home/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:///home/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:///home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///home/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:///home/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:///home/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:///home/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:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/home/runner/work/waku/waku/packages/waku/package.json',
'/home/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/server.js'
]
}
Node.js v18.17.0
at viteWarn (/home/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 (/home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/home/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 (/home/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 /home/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 (/home/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 (/home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at /home/runner/work/waku/waku/e2e/use-ui-library.spec.
|
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 /home/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 65ms
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/home/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:///home/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:///home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///home/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:///home/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:///home/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:///home/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:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/home/runner/work/waku/waku/packages/waku/package.json',
'/home/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/server.js'
]
}
Node.js v18.17.0
at viteWarn (/home/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 (/home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/home/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 (/home/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 /home/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 (/home/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 (/home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/
|
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 /home/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 70ms
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/home/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:///home/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:///home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///home/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:///home/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:///home/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:///home/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:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/home/runner/work/waku/waku/packages/waku/package.json',
'/home/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/server.js'
]
}
Node.js v18.17.0
at viteWarn (/home/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 (/home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/home/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 (/home/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 /home/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 (/home/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 (/home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/
|
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 /home/runner/work/waku/waku/packages/waku/dist/cli.js build
x Build failed in 67ms
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
[vite]: Rollup failed to resolve import "react-server-dom-webpack/server.edge" from "/home/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:///home/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:///home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (file:///home/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:///home/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:///home/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:///home/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:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19236:26)
at file:///home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:19194:26 {
watchFiles: [
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/src/pages/index.tsx',
'/home/runner/work/waku/waku/e2e/fixtures/use-ui-library/package.json',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/home/runner/work/waku/waku/packages/waku/package.json',
'/home/runner/work/waku/waku/node_modules/.pnpm/react@19.0.0-rc-6ebfd5b0-20240818/node_modules/react/jsx-runtime.react-server.js',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/index.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/server.js'
]
}
Node.js v18.17.0
at viteWarn (/home/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 (/home/runner/work/waku/waku/packages/waku/dist/lib/builder/build.js:35:5)
at onRollupWarning (/home/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 (/home/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 /home/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 (/home/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 (/home/runner/work/waku/waku/node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
e2e/ssr-basic.spec.ts#L58
2) [webkit] › ssr-basic.spec.ts:51:5 › ssr-basic: dev › increase counter ─────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('count')
Expected string: "3"
Received string: "2"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('count')
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
- locator resolved to <p data-testid="count">2</p>
- unexpected value "2"
56 | await page.getByTestId('increment').click();
57 | await page.getByTestId('increment').click();
> 58 | await expect(page.getByTestId('count')).toHaveText('3');
| ^
59 | });
60 |
61 | test('vercel ai', async ({ page }) => {
at /home/runner/work/waku/waku/e2e/ssr-basic.spec.ts:58:47
|
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.8m
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › multi-platform.spec.ts#L1
[webkit] › multi-platform.spec.ts took 58.6s
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › ssg-performance.spec.ts#L1
[webkit] › ssg-performance.spec.ts took 28.9s
|
Run pnpm exec playwright test --forbid-only --shard=4/4:
[webkit] › partial-builds.spec.ts#L1
[webkit] › partial-builds.spec.ts took 24.8s
|
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 ──
1 flaky
[webkit] › ssr-basic.spec.ts:51:5 › ssr-basic: dev › increase counter ──────────────────────────
3 skipped
77 passed (5.5m)
|
Loading