test: reproduce error with monorepo and ui library #4530
Annotations
7 errors, 5 warnings, and 1 notice
Run pnpm exec playwright test --forbid-only --shard=3/4
40883 stderr: TypeError: Unknown file extension ".css" for /home/runner/work/waku/waku/node_modules/.pnpm/react-tweet@3.2.0_react-dom@19.0.0-rc-6ebfd5b0-20240818_react@19.0.0-rc-6ebfd5b0-20240818__re_f42ap4vtvpfbpfkduwvpjbzyuq/node_modules/react-tweet/dist/twitter-theme/tweet-info-created-at.module.css
at new NodeError (node:internal/errors:405:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:124:36)
at defaultLoad (node:internal/modules/esm/load:84:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:603:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
|
Run pnpm exec playwright test --forbid-only --shard=3/4
40883 stderr: TypeError: Unknown file extension ".css" for /home/runner/work/waku/waku/node_modules/.pnpm/react-tweet@3.2.0_react-dom@19.0.0-rc-6ebfd5b0-20240818_react@19.0.0-rc-6ebfd5b0-20240818__re_f42ap4vtvpfbpfkduwvpjbzyuq/node_modules/react-tweet/dist/twitter-theme/tweet-actions.module.css
at new NodeError (node:internal/errors:405:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:124:36)
at defaultLoad (node:internal/modules/esm/load:84:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:603:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
|
Run pnpm exec playwright test --forbid-only --shard=3/4:
packages/waku/dist/lib/builder/build.js#L35
1) [firefox] › 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 106ms
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/packages/waku/package.json',
'/home/runner/work/waku/waku/packages/waku/dist/router/server.js',
'/home/runner/work/waku/waku/e2e/fixtures/ui-library/package.json',
'/home/runner/work/waku/waku/packages/waku/dist/router/define-router.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/fs-router.js',
'/home/runner/work/waku/waku/packages/waku/dist/router/create-pages.js',
'/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'
]
}
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
|
Run pnpm exec playwright test --forbid-only --shard=3/4:
packages/waku/dist/lib/builder/build.js#L35
1) [firefox] › 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=3/4:
packages/waku/dist/lib/builder/build.js#L35
1) [firefox] › 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 69ms
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/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/package.json'
]
}
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/wa
|
Run pnpm exec playwright test --forbid-only --shard=3/4:
packages/waku/dist/lib/builder/build.js#L35
1) [firefox] › 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 74ms
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=3/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=3/4:
[firefox] › use-router.spec.ts#L1
[firefox] › use-router.spec.ts took 1.8m
|
Run pnpm exec playwright test --forbid-only --shard=3/4:
[webkit] › examples-smoke.spec.ts#L1
[webkit] › examples-smoke.spec.ts took 42.9s
|
Run pnpm exec playwright test --forbid-only --shard=3/4:
[firefox] › ssg-performance.spec.ts#L1
[firefox] › ssg-performance.spec.ts took 30.3s
|
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=3/4
1 failed
[firefox] › use-ui-library.spec.ts:22:3 › apps with external ui libraries › build successfully ─
5 skipped
93 passed (6.7m)
|
Loading