Open OverflowCat opened 2 months ago
The typst-ts-cli must have exact same version as the version which you specified in the in typst.ts, otherwise you will get a CheckBytesError
error. For example, if the typst.ts
is installed as 0.5.0-rc2
, the typst-ts-cli
must be also 0.5.0-rc2
.
Thanks for clarifying! It would be even better if this requirement was prominently noted in the documentation or if there was a version check for the artifact.
I was considering adding a notes, but I don't know where to add it, as you may be missing it for some reason and ask again. From a short reconsideration, I would like to add it to the "Troubleshooting" page.
Describe the bug When rendering artifact in SVG mode, the renderer throws
Error: recursive use of an object detected which would lead to unsafe aliasing in rust
.To Reproduce
Compile a hello world using CLI (v0.4.1)[https://github.com/Myriad-Dreamin/typst.ts/releases/tag/v0.4.1].
Render the
main.artifact.sir.in
artifact using thenode.js-next
example, or$typst.svg({ vectorData })
in all-in-one.Desktop (please complete the following information):
Package/Software version (using command
typst-ts-cli --VV full
and paste down the output):