You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Nuxt 4 集成 Buefy 3.0.4 时出现Cannot read properties of undefined (reading '$buefy')错误求助

Nuxt 4 集成 Buefy 3.0.4 时出现Cannot read properties of undefined (reading '$buefy')错误求助

我试过用nuxt-buefy插件但没成功,之后尝试通过Nuxt的插件选项手动引入Buefy,结果直接触发了服务器500错误,报错信息是:

'Cannot read properties of undefined (reading '$buefy')'

这是一个几乎全新的Nuxt项目,我的plugins/buefy.ts文件代码如下:

import Buefy from 'buefy'
import 'buefy/dist/css/buefy.css'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(Buefy, {})
  nuxtApp.provide('buefy', Buefy)
})

有没有人遇到过同样的问题?我已经试了好几种方法,但都没解决,快愁死了😭

备注:内容来源于stack exchange,提问作者Chris

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.13 18:24:49