perspective-dev/perspective · error
Perspective wasn been initialized in inline mode
Error message
Perspective wasn been initialized in inline mode
What it means
Guard in the viewer's inline-mode entry point: the inline bundle embeds wasm, and this message fires when the inline entrypoint is used without its initialization having run, i.e. the embedded viewer wasm was not set up before perspective APIs were invoked.
Solutions
- Run the inline initialization entrypoint before using viewer APIs
- Switch to the standard perspective-viewer entrypoint if inline wasm is not needed
- Verify the inline module isn't partially loaded or tree-shaken by the bundler
- Ensure awaited initialization completes before instantiating viewer elements
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at rust/perspective-viewer/src/ts/perspective-viewer.inline.ts:21 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of perspective-dev/perspective@11c8238c0c (2026-09-09).
Data as JSON: /api/errors/6642f00363426893.
Report an issue: GitHub.
Appendix: source
Thrown at rust/perspective-viewer/src/ts/perspective-viewer.inline.ts:21
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
// ┃ This file is part of the Perspective library, distributed under the terms ┃
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
import perspective_viewer from "./perspective-viewer.ts";
export * from "./perspective-viewer.ts";
// @ts-ignore
import client_wasm from "../../dist/wasm/perspective-viewer.wasm";
await perspective_viewer.init_client(client_wasm as any as ArrayBuffer);
console.warn("Perspective wasn been initialized in inline mode");
export default perspective_viewer;
View on GitHub (pinned to 11c8238c0c)