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

怎么添加插件呢,插件名在哪里看 #19

Open
RedCarl opened this issue Sep 3, 2024 · 1 comment
Open

怎么添加插件呢,插件名在哪里看 #19

RedCarl opened this issue Sep 3, 2024 · 1 comment

Comments

@RedCarl
Copy link

RedCarl commented Sep 3, 2024

我想使用 MessagePlugin.error("错误"); 但是
500
Cannot read properties of undefined (reading 'querySelector')

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ['@tdesign-vue-next/nuxt', '@nuxtjs/tailwindcss'],
tdesign: {
resolveIcons: true,
plugins: ['MessagePlugin']
}
})

@liweijie0812
Copy link
Member

不配置plugins ,插件是默认全部导入的
我试了没问题
image
image
引用后运行 npm run generate,生成.nuxt ,vscode 有提示
image

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

2 participants