Open MTTTM opened 1 year ago
Describe the bug it is error,when import the package in vue file
my code: import hljs from 'highlight.js'; import "highlightjs-line-numbers.js"
import hljs from 'highlight.js'; import "highlightjs-line-numbers.js"
Facing same issue with VanillaJS.
try this:
import hljs from 'highlight.js/lib/core' window.hljs = hljs require("highlightjs-line-numbers.js")
Describe the bug it is error,when import the package in vue file
my code:
import hljs from 'highlight.js'; import "highlightjs-line-numbers.js"