在我的Nuxt.js应用程序中,我想使用纽特-i18n的最新版本(5.4.2)。我以前用过它,没有任何问题,但我不明白现在出了什么问题:
版本
再生产环节
https://github.com/begueradj/nuxti18nerror
复制步骤
yarn create nuxt-app my-project,然后安装plugin:yarn add nuxt-i18n,然后将它添加到配置文件nuxt.config.js中,如官方文档所示:modules: [ ['nuxt-i18n', { // Options }] ]预期的是什么?
当我运行yarn run dev时,我希望没有错误地启动服务器。就这么简单。
到底发生了什么?
当我运行yarn run dev时,我会收到以下错误消息:
INFO Building project
✖ fatal /home/begueradj/nuxti18nerror/node_modules/nuxt-i18n/src/helpers/components.js:1
Error: Cannot find module 'acorn-walk'
at Object.<anonymous> (/home/begueradj/nuxti18nerror/node_modules/nuxt-i18n/src/helpers/components.js:5:16)
at Object.Module._extensions..js (module.js:664:10)
Nuxt Fatal Error :(
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.https://stackoverflow.com/questions/52773817
复制相似问题