{"record":{"id":"6642f00363426893","repo":"perspective-dev/perspective","slug":"perspective-wasn-been-initialized-in-inline-mode-6642f0","errorCode":null,"errorMessage":"Perspective wasn been initialized in inline mode","messagePattern":"Perspective wasn been initialized in inline mode","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"rust/perspective-viewer/src/ts/perspective-viewer.inline.ts","lineNumber":21,"sourceCode":"// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃\n// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃\n// ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃\n// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫\n// ┃ Copyright (c) 2017, the Perspective Authors.                              ┃\n// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃\n// ┃ This file is part of the Perspective library, distributed under the terms ┃\n// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃\n// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n\nimport perspective_viewer from \"./perspective-viewer.ts\";\nexport * from \"./perspective-viewer.ts\";\n\n// @ts-ignore\nimport client_wasm from \"../../dist/wasm/perspective-viewer.wasm\";\n\nawait perspective_viewer.init_client(client_wasm as any as ArrayBuffer);\n\nconsole.warn(\"Perspective wasn been initialized in inline mode\");\n\nexport default perspective_viewer;\n","sourceCodeStart":3,"sourceCodeEnd":24,"githubUrl":"https://github.com/perspective-dev/perspective/blob/11c8238c0c9c0b9e490b5a6a2dc277afad1e980a/rust/perspective-viewer/src/ts/perspective-viewer.inline.ts#L3-L24","documentation":"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.","triggerScenarios":"Thrown at rust/perspective-viewer/src/ts/perspective-viewer.inline.ts:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"11c8238c0c9c0b9e490b5a6a2dc277afad1e980a","analyzedAt":"2026-09-09T00:35:19.377Z","contentChangedAt":"2026-09-09T00:35:19.377Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}