fix: remove createRequire for package json #5115
Annotations
5 errors, 7 warnings, and 1 notice
Run pnpm exec playwright test --shard=1/4:
e2e/create-waku.spec.ts#L1
stderr: Error: ENOENT: no such file or directory, open '../package.json'
at Object.openSync (node:fs:603:3)
at readFileSync (node:fs:471:35)
at Fx (file:///home/runner/work/waku/waku/packages/create-waku/dist/index.js:119:41) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '../package.json'
}
|
Run pnpm exec playwright test --shard=1/4:
e2e/create-waku.spec.ts#L1
stderr: Error: ENOENT: no such file or directory, open '../package.json'
at Object.openSync (node:fs:603:3)
at readFileSync (node:fs:471:35)
at Fx (file:///home/runner/work/waku/waku/e2e/.cache/1f83f228-cbb2-4985-83c8-214c883cb6e6/create-waku/dist/index.js:119:41) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '../package.json'
}
|
Run pnpm exec playwright test --shard=1/4
34399 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-bf7e210c-20241017_react@19.0.0-rc-bf7e210c-20241017__re_wxk2yr6vbyq3hvoxjrkyp3qbli/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 --shard=1/4
34399 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-bf7e210c-20241017_react@19.0.0-rc-bf7e210c-20241017__re_wxk2yr6vbyq3hvoxjrkyp3qbli/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 --shard=1/4:
e2e/ssr-basic.spec.ts#L70
1) [chromium] › ssr-basic.spec.ts:61:5 › ssr-basic: dev › vercel ai ──────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('vercel-ai').getByTestId('ai-state-user')
Expected string: "admin"
Received string: "guest"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('vercel-ai').getByTestId('ai-state-user')
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
- locator resolved to <span data-testid="ai-state-user">guest</span>
- unexpected value "guest"
68 | await expect(aiLocator.getByTestId('ui-state-count')).toHaveText('0');
69 | await aiLocator.getByTestId('action-foo').click();
> 70 | await expect(aiLocator.getByTestId('ai-state-user')).toHaveText('admin');
| ^
71 | await expect(aiLocator.getByTestId('ui-state-count')).toHaveText('1');
72 | await aiLocator.getByTestId('action-foo').click();
73 | await expect(aiLocator.getByTestId('ui-state-count')).toHaveText('2');
at /home/runner/work/waku/waku/e2e/ssr-basic.spec.ts:70:60
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@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 --shard=1/4:
[chromium] › broken-link.spec.ts#L1
[chromium] › broken-link.spec.ts took 1.3m
|
Run pnpm exec playwright test --shard=1/4:
[chromium] › multi-platform.spec.ts#L1
[chromium] › multi-platform.spec.ts took 1.0m
|
Run pnpm exec playwright test --shard=1/4:
[chromium] › examples-smoke.spec.ts#L1
[chromium] › examples-smoke.spec.ts took 50.9s
|
Run pnpm exec playwright test --shard=1/4:
[chromium] › ssg-performance.spec.ts#L1
[chromium] › ssg-performance.spec.ts took 30.0s
|
Run pnpm exec playwright test --shard=1/4:
[chromium] › partial-builds.spec.ts#L1
[chromium] › partial-builds.spec.ts took 25.2s
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "playwright-report-ubuntu-latest-18.17.0-1", "playwright-report-ubuntu-latest-20.8.0-2", "playwright-report-ubuntu-latest-22.7.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 --shard=1/4
1 flaky
[chromium] › ssr-basic.spec.ts:61:5 › ssr-basic: dev › vercel ai ───────────────────────────────
2 skipped
100 passed (8.1m)
|
Loading