WebDevSimplified / Markdown-Blog

244 stars 192 forks source link

Hi! i am following your tutorial, i faced an error, and a simple fix is updated. #21

Open nishant-ai opened 2 years ago

nishant-ai commented 2 years ago

When I used the "marked" function, the article was not been created, on debugging, I found out that marked is not imported as a function. Error: TypeError: marked is not a function

It might be because of the latest version of marked or something else I'm missing out, So I just imported marked like: const { marked } = require('marked');

I believe this would be helpful for other learners who follow your tutorial! Please Ping me about this issue!