MDC component fails to import parseMarkdown function
The MDC component is not rendering anything.
I managed to get the following error:
Failed to import parseMarkdown SyntaxError: The requested module '/_nuxt/@fs/Users/.../node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js?v=c60aeab6' does not provide an export named 'default'
It was quite annoying to get this information because the import silently fails inside the useAsyncData composable.
Is Nuxt/Vite optimizing this away because of the dynamic import?
edit:
when I look at the actual file I can find this:
module.exports = function extend() {
// implementation
}
But this package hasn't been updated for years so I'm unsure what is going on here
edit 2:
Seems like an issue in @rollup/plugin-commonjs in vite. It is supposed to be fixed in the latest version but I'm still having this issue. Looking into it further...
edit 3:
Possible cause: rollup/plugins#1924
I managed to get the following error:
Failed to import parseMarkdown SyntaxError: The requested module '/_nuxt/@fs/Users/.../node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js?v=c60aeab6' does not provide an export named 'default'
It was quite annoying to get this information because the import silently fails inside the useAsyncData composable.
Is Nuxt/Vite optimizing this away because of the dynamic import?
edit:
when I look at the actual file I can find this:
module.exports = function extend() {
// implementation
}
But this package hasn't been updated for years so I'm unsure what is going on here
edit 2:
Seems like an issue in @rollup/plugin-commonjs in vite. It is supposed to be fixed in the latest version but I'm still having this issue. Looking into it further...
edit 3:
Possible cause: rollup/plugins#1924
