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
Seems that npm doesn't cache it correctly (since I published it recently). You can try to add a version after the package names to align the version of these packages:
<scripttype="module"
src="https://cdn.jsdelivr.net/npm/@myriaddreamin/[email protected]/dist/esm/contrib/all-in-one-lite.bundle.js"
id="typst"
></script>
... long source code then ...
<script>
... longsourcecodethen ...
document.getElementById('typst').addEventListener('load',function(){$typst.setCompilerInitOptions({getModule: ()=>'https://cdn.jsdelivr.net/npm/@myriaddreamin/[email protected]/pkg/typst_ts_web_compiler_bg.wasm',});$typst.setRendererInitOptions({getModule: ()=>'https://cdn.jsdelivr.net/npm/@myriaddreamin/[email protected]/pkg/typst_ts_renderer_bg.wasm',});</script>
Hello, thanks for this awesome project!
I am working on a simple demo but the wasm loading always failed.
Even the demo page failed. Does a mismatch between js and wasm cause this?
LinkError: WebAssembly.instantiate(): Import #3 "wbg" "__wbg_set_f975102236d3c502": function import requires a callable
The text was updated successfully, but these errors were encountered: