simple-code-editor
simple-code-editor copied to clipboard
[email protected] does not provide an export named 'default'
The requested module '/node_modules/.pnpm/[email protected]/node_modules/highlight.js/lib/index.js?v=eb8eb25c' does not provide an export named 'default'
import hljs from 'highlight.js';
//...
<CodeEditor :highlight="hljs"/>
To solve this issue without importing highlight.js manually, add the following to your vite.config.ts:
optimizeDeps: {
include: ['highlight.js']
}