leerob / leerob.io

✨ My portfolio built with Next.js, Tailwind, and Vercel.

Home Page:https://leerob.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RemarkGFM esm Error

souravrs999 opened this issue · comments

Hi lee how did you successfully import remarkGfm ?
I'm trying to do the same but i'm having this error.

Error: Must use import to load ES Module: /home/sourav/Desktop/Blog/learn-nextjs/node_modules/remark-gfm/index.js

Did i miss a step or something i'm not able to figure it out. Tnx

Hey! I'm using the ESM support built into Next.js to allow using the latest version of remark-gfm, which is ESM only.

https://github.com/leerob/leerob.io/blob/main/next.config.js#L2