You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file:///apps/slidev_themes/node_modules/markdown-it/lib/index.mjs:485
plugin.apply(plugin, args)
^
TypeError: plugin.apply is not a function
at MarkdownIt.use (file:///apps/slidev_themes/node_modules/markdown-it/lib/index.mjs:485:10)
at Object.markdownItSetup (file:///apps/slidev_themes/vite.config.ts.timestamp-1708337595180-85208ee05ece2.mjs:22:12)
at Object.markdownItSetup (file:///apps/slidev_themes/node_modules/@slidev/cli/dist/chunk-FIXL4WBO.mjs:1562:35)
at createMarkdown (file:///apps/slidev_themes/node_modules/unplugin-vue-markdown/dist/chunk-XC4FHL6S.js:144:17)
at unpluginFactory (file:///apps/slidev_themes/node_modules/unplugin-vue-markdown/dist/chunk-XC4FHL6S.js:314:25)
at file:///apps/slidev_themes/node_modules/unplugin/dist/index.mjs:1571:32
at createMarkdownPlugin (file:///apps/slidev_themes/node_modules/@slidev/cli/dist/chunk-FIXL4WBO.mjs:1537:10)
at async ViteSlidevPlugin (file:///apps/slidev_themes/node_modules/@slidev/cli/dist/chunk-FIXL4WBO.mjs:1816:26)
at async createServer (file:///apps/slidev_themes/node_modules/@slidev/cli/dist/chunk-PDMXU2K7.mjs:2523:11)
at async initServer (file:///apps/slidev_themes/node_modules/@slidev/cli/dist/cli.mjs:116:16)
Node.js v18.16.1
I know this may caused by convert from cjs to esm (no idea what this is though), but don't know how to fix it.
Many thanks if you could help!
Desktop (please complete the following information):
Slidev version: 0.48 beta
The text was updated successfully, but these errors were encountered:
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.
Describe the bug
I used to load markdown-it-admon in vite.config.ts like this:
when upgrading slidev to 0.48 beta, I have to make these changes:
at package.json, add this statement:
after upgrading, I'll got this error:
I know this may caused by convert from cjs to esm (no idea what this is though), but don't know how to fix it.
Many thanks if you could help!
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: