有时候,你的Nuxt项目如果使用了 @nuxtjs/i18n
,无论是运行时还是打包时,都有可能出现报错:
lognode_modules/@nuxtjs/i18n/dist/runtime/composables/index.js (5:9): "getActiveHead" is not exported by "node_modules/unhead/dist/index.mjs", imported by "node_modules/@nuxtjs/i18n/dist/runtime/composables/index.js". file: E:/Code/vwordai-home/node_modules/@nuxtjs/i18n/dist/runtime/composables/index.js:5:9
这个错在运行时可能影响不大,如果没有强迫症的伙伴可能就忽略了,但当你打包时,这个错还是会出现,此时你就不得不进去解决这个问题了!
@nuxtjs/i18n
,建议版本是 9.3.0
以上!详情参考:【github issue】
本文作者:DingDangDog
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!