我正在将现有的 Nuxt 应用程序迁移到 Nuxt 3,但无法摆脱上述错误。关于解决这个问题的任何想法?控制台输出如下所示:
node_modules/bootstrap-vue/esm/vue.js:1:7:错误:“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出用于导入“默认”
1 │ import Vue from 'vue';
错误 18:38:49 [vite] 更新依赖项时出错:18:38:49
错误:构建失败,出现 172 个错误:node_modules/bootstrap-vue/esm/vue.js:1:7:错误:“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出用于导入“默认”node_modules/bootstrap-vue/esm/vue.js:1:7:错误:在“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出用于导入“默认”node_modules/bootstrap- vue/esm/vue.js:1:7: 错误:“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出用于导入“default”node_modules/bootstrap-vue/esm/vue。 js:1:7:错误:“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出,用于导入“默认”node_modules/bootstrap-vue/esm/vue.js:1:7:错误:“node_modules/vue/dist/vue.runtime.esm-bundler.js”中没有匹配的导出用于导入“default”
at failureErrorWithLog (nuxt-template-3\node_modules\esbuild\lib\main.js:1493:15)
at nuxt-template-3\node_modules\esbuild\lib\main.js:1151:28
at runOnEndCallbacks (nuxt-template-3\node_modules\esbuild\lib\main.js:941:63)
at buildResponseToResult (nuxt-template-3\node_modules\esbuild\lib\main.js:1149:7)
at nuxt-template-3\node_modules\esbuild\lib\main.js:1258:14
at nuxt-template-3\node_modules\esbuild\lib\main.js:629:9
at handleIncomingPacket (nuxt-template-3\node_modules\esbuild\lib\main.js:726:9)
at Socket.readFromStdout (nuxt-template-3\node_modules\esbuild\lib\main.js:596:7)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:467:12)