I am using nextjs.
When importing markdown-toc in nextjs I am getting the issue.
/pages/index.js
import toc from "markdown-toc";
Then I got the below error
./node_modules/markdown-toc/lib/utils.js
Cannot statically analyse 'require(…, …)' in line 16