Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions on how to enable the React Compiler in a Waku pro… #857

Merged
merged 4 commits into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions docs/guides/react-compiler.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
slug: guides/react-compiler
title: Enabling React Compiler in Waku
description: Learn how to enable the React Compiler in your Waku project using the Vite Plugin to optimize your React applications.
---

The React Compiler is a build-time tool designed to optimize React applications automatically. This guide will show you how to enable the React Compiler by integrating it with the `@vitejs/plugin-react`.

```bash
npm install -D @vitejs/plugin-react babel-plugin-react-compiler
```

```ts
// waku.config.ts
import { defineConfig } from 'waku/config';
import react from '@vitejs/plugin-react';

const ReactCompilerConfig = {};

const getConfig = () => ({
plugins: [
react({
babel: {
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],
},
}),
],
});

export default defineConfig({
unstable_viteConfigs: {
'dev-main': getConfig,
'build-client': getConfig,
},
});
```

Check out [a working example](../../examples/05_compiler), or visit the [StackBlitz demo](https://stackblitz.com/github/dai-shi/waku/tree/main/examples/05_compiler) with Waku v0.21.12 and up.

Unchanged files with check annotations Beta

import { exec, spawn } from 'node:child_process';

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (1/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:138 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:138:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v20.8.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (1/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:144 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:144:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (1/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (1/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (1/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (2/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (2/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (2/4)

Child Process Error

stderr: node:events:498 throw er; // Unhandled 'error' event ^ Error: EPIPE: broken pipe, write at Socket._write (node:internal/net:63:18) at writeOrBuffer (node:internal/streams/writable:570:12) at _write (node:internal/streams/writable:499:10) at Writable.write (node:internal/streams/writable:508:10) at console.value (node:internal/console/constructor:300:16) at console.log (node:internal/console/constructor:383:26) at ConsumerObserver2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23275:29) at Subscriber2._next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23244:26) at Subscriber2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23217:16) at C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:26952:24 Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -4047, syscall: 'write', code: 'EPIPE' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:138 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:138:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' }

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (2/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

Child Process Error

stderr: Node.js v20.8.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (2/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (1/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:144 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:144:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (2/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (3/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:138 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:138:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v20.8.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 20.8.0) - (3/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:144 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:144:28) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (1/4)

Child Process Error

stderr: node:events:498 throw er; // Unhandled 'error' event ^ Error: EPIPE: broken pipe, write at Socket._write (node:internal/net:63:18) at writeOrBuffer (node:internal/streams/writable:570:12) at _write (node:internal/streams/writable:499:10) at Writable.write (node:internal/streams/writable:508:10) at console.value (node:internal/console/constructor:300:16) at console.log (node:internal/console/constructor:383:26) at ConsumerObserver2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23275:29) at Subscriber2._next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23244:26) at Subscriber2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23217:16) at C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:26952:24 Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -4047, syscall: 'write', code: 'EPIPE' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (1/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (3/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: node:internal/bootstrap/switches/does_own_process_state:144 cachedCwd = rawMethods.cwd(); ^ Error: ENOENT: no such file or directory, uv_cwd at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:144:28) at process.cwd (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23) at process.cwd (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58) at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17) at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21) at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../cli/default-reporter/lib/reportError.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) { errno: -2, code: 'ENOENT', syscall: 'uv_cwd' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on macos-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: Could not execute pnpm install. Please run

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: node:events:498 throw er; // Unhandled 'error' event ^ Error: EPIPE: broken pipe, write at Socket._write (node:internal/net:63:18) at writeOrBuffer (node:internal/streams/writable:570:12) at _write (node:internal/streams/writable:499:10) at Writable.write (node:internal/streams/writable:508:10) at console.value (node:internal/console/constructor:300:16) at console.log (node:internal/console/constructor:383:26) at ConsumerObserver2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23275:29) at Subscriber2._next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23244:26) at Subscriber2.next (C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:23217:16) at C:\Users\runneradmin\setup-pnpm\node_modules\.pnpm\pnpm@9.4.0\node_modules\pnpm\dist\pnpm.cjs:26952:24 Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -4047, syscall: 'write', code: 'EPIPE' } Node.js v22.7.0

Check failure on line 1 in e2e/create-waku.spec.ts

GitHub Actions / E2E on windows-latest (Node 22.7.0) - (3/4)

Child Process Error

stderr: Could not execute pnpm install. Please run
import { fileURLToPath } from 'node:url';
import crypto from 'node:crypto';
import { mkdir, readdir, cp, readFile, writeFile } from 'node:fs/promises';
await page.getByTestId('increment').click();
await page.getByTestId('increment').click();
await page.getByTestId('increment').click();
await expect(page.getByTestId('count')).toHaveText('3');

Check failure on line 25 in e2e/ssr-basic.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 18.17.0) - (1/4)

[chromium] › ssr-basic.spec.ts:18:5 › ssr-basic: DEV › increase counter

1) [chromium] › ssr-basic.spec.ts:18: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') 14 × locator resolved to <p data-testid="count">2</p> - unexpected value "2" 23 | await page.getByTestId('increment').click(); 24 | await page.getByTestId('increment').click(); > 25 | await expect(page.getByTestId('count')).toHaveText('3'); | ^ 26 | }); 27 | 28 | test('vercel ai', async ({ page }) => { at /home/runner/work/waku/waku/e2e/ssr-basic.spec.ts:25:47

Check failure on line 25 in e2e/ssr-basic.spec.ts

GitHub Actions / E2E on ubuntu-latest (Node 22.7.0) - (4/4)

[webkit] › ssr-basic.spec.ts:18:5 › ssr-basic: DEV › increase counter

1) [webkit] › ssr-basic.spec.ts:18: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') 14 × locator resolved to <p data-testid="count">2</p> - unexpected value "2" 23 | await page.getByTestId('increment').click(); 24 | await page.getByTestId('increment').click(); > 25 | await expect(page.getByTestId('count')).toHaveText('3'); | ^ 26 | }); 27 | 28 | test('vercel ai', async ({ page }) => { at /home/runner/work/waku/waku/e2e/ssr-basic.spec.ts:25:47
});
test('vercel ai', async ({ page }) => {