markdownit-module icon indicating copy to clipboard operation
markdownit-module copied to clipboard

Can't import the named export 'parse' from non EcmaScript module (only default export is available)

Open erdidoqan opened this issue 2 years ago • 1 comments

21:58:00.408 ERROR in ./node_modules/markdown-it/lib/common/utils.mjs 179:9-18
21:58:00.408 Can't import the named export 'P' from non EcmaScript module (only default export is available)
21:58:00.409 @ ./node_modules/markdown-it/lib/index.mjs
21:58:00.409 @ ./node_modules/markdown-it/index.mjs
21:58:00.409 @ ./node_modules/.cache/nuxt/markdownit.js
21:58:00.409 @ ./node_modules/.cache/nuxt/index.js
21:58:00.409 @ ./node_modules/.cache/nuxt/client.js
21:58:00.409 @ multi ./node_modules/@nuxt/components/lib/installComponents.js ./node_modules/.cache/nuxt/client.js

I started getting such an error due to the Markdownit update. How can I solve this problem

erdidoqan avatar Dec 09 '23 19:12 erdidoqan

Workaround: install old version of markdown-it as dependency, 8.3.1 in my case image

speker2010 avatar Mar 22 '24 14:03 speker2010