[help] Uncaught (in promise) Error: Renderer.MissingLayout: with [] #619
-
hello. I tried to use Typst.ts to compile and render Typst documents on the web, using example projects like Mitex. However, I'm getting the error.
The repository that reproduced the error: https://github.com/cog25/typst-ts-why-not-working |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, I explore it a bit and find it might be broken to set data and render at the same time. So you may render svg with code change: + kModule.manipulateData({
+ data: result,
+ });
return renderer.renderSvg({
- artifactContent: result,
format: "vector",
renderSession: kModule,
}) Note you'll finally have to make such change because it only cache things in a single render session otherwise it will be very inefficient. You may send an issue and I'll fix it later. |
Beta Was this translation helpful? Give feedback.
Hi, I explore it a bit and find it might be broken to set data and render at the same time. So you may render svg with code change:
Note you'll finally have to make such change because it only cache things in a single render session otherwise it will be very inefficient.
You may send an issue and I'll fix it later.