You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packages/core/src/config.ts (the loadTsConfig helper) contains:
constmod=awaitimport(path)
with fs/promises in the module graph. When @agentskit/core is consumed from a browser context (Vite/Next.js/etc.), the bundler correctly externalizes fs/promises but the dynamic import still runs at module load, crashing:
Module "fs/promises" has been externalized for browser compatibility. Cannot access "fs/promises.readFile" in client code.
This reproducibly breaks apps/example-react and apps/example-multi-agent at runtime — the root <div id="root"> never mounts.
Impact
Any browser-side consumer of @agentskit/core crashes on import
Manifesto principle 1 ('core works in any environment — Node, Deno, edge, browser') is violated
Fix
Move loadTsConfig out of @agentskit/core into @agentskit/cli (or any non-core package). The core must not reach for Node builtins.
Priority
P0 for the Phase 0 launch — core browser-compat must be restored before public release.
Workaround
The two browser E2E tests in tests/e2e/example-react.spec.ts and tests/e2e/example-multi-agent.spec.ts are test.skip()-ed with a link to this issue until the core fix lands.
Problem
packages/core/src/config.ts(theloadTsConfighelper) contains:with
fs/promisesin the module graph. When@agentskit/coreis consumed from a browser context (Vite/Next.js/etc.), the bundler correctly externalizesfs/promisesbut the dynamic import still runs at module load, crashing:This reproducibly breaks
apps/example-reactandapps/example-multi-agentat runtime — the root<div id="root">never mounts.Impact
@agentskit/corecrashes on importFix
Move
loadTsConfigout of@agentskit/coreinto@agentskit/cli(or any non-core package). The core must not reach for Node builtins.Priority
P0 for the Phase 0 launch — core browser-compat must be restored before public release.
Workaround
The two browser E2E tests in
tests/e2e/example-react.spec.tsandtests/e2e/example-multi-agent.spec.tsaretest.skip()-ed with a link to this issue until the core fix lands.