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

引入报错 #25

Open
jiacheng-coder opened this issue Jan 7, 2024 · 2 comments
Open

引入报错 #25

jiacheng-coder opened this issue Jan 7, 2024 · 2 comments

Comments

@jiacheng-coder
Copy link

Uncaught SyntaxError: The requested module '/node_modules/.pnpm/[email protected]/node_modules/vue-mathjax-next/lib/index.js?v=38b67c8a' does not provide an export named 'default'

出现上述报错,当我使用如下方式引入时:
import VueMathjax from 'vue-mathjax-next'
app.user(VueMathjax)

请问如何解决?

@justforuse
Copy link
Owner

import { createApp } from 'vue'
import App from './App.vue'
import VueMathjax from 'vue-mathjax-next';

createApp(App).use(VueMathjax).mount('#app')

Have you check the demo link? or you can share the problem project link

@chengazhen
Copy link

应该是vite版本问题

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

3 participants