0👍
✅
From this I figured that in verion 4
of marked
instead of:
import marked from "marked";
you have to import it like so:
import { marked } from "marked";
0👍
since marked has been upgraded to version 4 upward, imported marked must be destructured
import marked from "marked"
it will solve the problem
Source:stackexchange.com