pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.27k stars 96 forks source link

ReferenceError: `process` is not defined #477

Open Ecorous opened 1 year ago

Ecorous commented 1 year ago

Hi, I'm using SvelteKit with mdsvex and I use await compile("test") as an example. It errors saying the error message provided within the title, any more information needed I can provide

cyberrobot commented 1 year ago

Are you trying to use mdsvex in the browser? Where do you call await compile("test") from?

aryzing commented 1 year ago

Any chance you managed to resolve this? Running into the same issue.

@cyberrobot I'm running the code in a vanilla svelte app on the browser. The compile function is being called in an onSuccess callback after receiving data from the server. Any suggestions?