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
{{ message }}
Repository navigation
build: example scripts at the repo root cannot import @simlin packages #827
Every script in examples/ and the ones in scripts/ that import @simlin/* packages fail from a fresh checkout with Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@simlin/engine'.
The root package.json declares no @simlin/* dependencies, so pnpm never links them into the root node_modules, which is where Node resolves imports for files outside a workspace package.
The examples/ scripts are the closest thing we have to "how to call the engine from Node", and none of them run.
Nothing in CI runs them, so they will stay broken.
Fix
Add the needed packages (@simlin/engine, @simlin/core, @simlin/diagram, @simlin/server) as workspace:* dev dependencies in the root package.json.
Alternative: delete the scripts nobody uses.
A CI smoke run of one example is optional and cheap.
changed the title [-]examples/svg.mjs and scripts/debug-diagram-gen.mjs fail with ERR_MODULE_NOT_FOUND: @simlin/engine[/-][+]build: example scripts at the repo root cannot import @simlin packages[/+]on Oct 12, 2026
Activity
[-]examples/svg.mjs and scripts/debug-diagram-gen.mjs fail with ERR_MODULE_NOT_FOUND: @simlin/engine[/-][+]build: example scripts at the repo root cannot import @simlin packages[/+]