I eagerly reopened an old codespace to try out the new pretext-tools extension and the live preview feature. I got this error message:
The instant preview needs a Node.js runtime with WebAssembly JSPI, and "node" does not provide one. Install Node.js 22 or later, or point the "pretext-tools.instantPreview.nodePath" setting at one.
I started a new codespace and found the same error. Running "node -v" in both codespaces gives v22.23.1. Claude suggested editing the setting pretext-tools.instantPreview.nodePath based on the results of "which node", which I did without success. It then suggested
node -e "console.log(typeof WebAssembly.Suspending)"
which returned "undefined". It next suggested updating node to version 24, but nvm is not installed so I decided to post here.
Unrelated, but the "Format PreTeXt" button in PreTeXt.Plus has been a really useful feature for new authors I've been working with, but I couldn't find that option inside the codespace. Perhaps that could be added to the pretext-tools menu (or someone could point me to where it already exists!).
Thanks for your work on this, Oscar!
David