WebDevSimplified / Markdown-Blog

244 stars 191 forks source link

Keep getting unexpected identifier error? anyone has any solution to that? #19

Open pumasa opened 2 years ago

Tmax9663 commented 2 years ago

Edit models/article.js const marked = require('marked') change to const {marked} = require('marked')

and for each .ejs inside views/articles folder replace bootstrap cdn to "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.1/css/bootstrap.min.css"

case-2 commented 1 year ago

thankyou so much @Tmax9663 your solution worked, it saved my entire day from going waste as i am new to js.