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
I m using vue-codemirror in vitepress project, it work fine in development mode, but it can not build, i receive this error:
✖ rendering pages...
build error:
file:///F:/Programming/WebProjects/test/.vitepress/.temp/index.md.js?t=1714413605827:3
import { Codemirror } from "vue-codemirror";
^^^^^^^^^^
SyntaxError: Named export 'Codemirror' not found. The requested module 'vue-codemirror' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'vue-codemirror';
const { Codemirror } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async renderPage (file:///F:/Programming/WebProjects/test/node_modules/vitepress/dist/node/serve-CXVdC751.js:46638:28)
at async pMap.concurrency (file:///F:/Programming/WebProjects/test/node_modules/vitepress/dist/node/serve-CXVdC751.js:46873:11)
at async file:///F:/Programming/WebProjects/test/node_modules/vitepress/dist/node/serve-CXVdC751.js:2614:20
I have created a brand new vitepress project, but unfortunately, this issue still exists cannot build.
It seems that vue-codemirror has not been updated for a long time. Does it support the latest vite?
Describe the bug
I m using vue-codemirror in vitepress project, it work fine in development mode, but it can not build, i receive this error:
I have created a brand new vitepress project, but unfortunately, this issue still exists cannot build.
It seems that vue-codemirror has not been updated for a long time. Does it support the latest vite?
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: