Skip to content

Can not use nuxt-i18n at all #137

@begueradj

Description

@begueradj

Version

v5.4.2

Reproduction link

https://github.com/begueradj/nuxti18nerror

Steps to reproduce

  1. Either clone my project and follow the README file instructions
  2. Or create the a Nuxt.js project: yarn create nuxt-app my-project, then install the plugin: yarn add nuxt-i18n , then add it to the configuration file nuxt.config.js as the official documentation says: modules: [ ['nuxt-i18n', { // Options }] ]

What is expected ?

I expect to launch the server without errors when I run yarn run dev. As simple as that.

What is actually happening?

When I run yarn run dev I am getting this error message:

INFO Building project

✖ fatal /home/begueradj/nuxti18nerror/node_modules/nuxt-i18n/src/helpers/components.js:1
Error: Cannot find module 'acorn-walk'
at Object. (/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.

This bug report is available on Nuxt community (#c149)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions