Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite+vue3 import languages error #3851

Open
zhyit opened this issue Dec 25, 2024 · 0 comments
Open

vite+vue3 import languages error #3851

zhyit opened this issue Dec 25, 2024 · 0 comments

Comments

@zhyit
Copy link

zhyit commented Dec 25, 2024

Information:

  • Prism version: 1.29.0
  • Plugins:
  • Environment: vite+vue3

Description
vite+vue3 import languages error
image

Example
import Prism from 'prismjs';
import 'prismjs/themes/prism.css'
import 'prismjs/components/prism-c'
import 'prismjs/components/prism-cpp'
import 'prismjs/components/prism-csharp'
import 'prismjs/components/prism-php'
import 'prismjs/components/prism-python'
import 'prismjs/components/prism-ruby'
import 'prismjs/components/prism-java'

let els = temp.querySelectorAll('pre:has(code)');
if (els && els.length > 0) {
els.forEach(item => {
Prism.highlightElement(item)
})
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant