TX001

Yoga is not initialized

Console

Text.js error TX001: Yoga is not initialized. Call `await initYoga()` (or `await createConsoleRoot()`) before rendering.

Why this happens

Layout runs on Yoga, which ships as WebAssembly and has to be instantiated before the first frame. Something created a scene node or root synchronously before initYoga() resolved.

How to fix it

Use the async root helpers, which initialize Yoga for you:

import { createConsoleRoot } from "@textjs/react";const root = await createConsoleRoot();root.render(<App />);

If you need createConsoleRootSync() or the core scene graph directly, await initYoga() once at startup:

import { initYoga } from "@textjs/core";await initYoga();

Apps started with text dev never see this error.