Closed asv7c2 closed 3 years ago
Looks like something with sveltekit.
Hey @asv1! Did you ever get around this? I'm getting the same error.
@emme1444
You need replace in file markdown-parser.js
from import marked from 'marked'
to import marked from 'marked/lib/marked.esm.js'
. It because sveltekit wants esm module to import.
@asv1 I had been scratching my head on how to solve it while not breaking other environments. Have you tested if changing the import would not break it for plain Svelte with Rollup or Sapper? If so I can make the change as a patch here.
@pablo-abc Rollup can import esm? So is sapper to, i am right?
@asv1 Thanks for the quick response! I went a different route by using MDsveX instead. But good luck!
@pablo-abc it was closed, but issue still occurs when I try it with SvelteKit :(
@tomekrozalski which version of this package are you using? I'm currently using this with SvelteKit here without any issues. Are you getting the same error as the original issue?
Such error i got:
It installed as usual dependency. If i instal it as devdependency it cannot be found.