question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not use nuxt-i18n at all

See original GitHub issue

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.<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.

<div align="right">This bug report is available on Nuxt community (#c149)</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

3reactions
begueradjcommented, Oct 12, 2018

For anyone facing this issue, my boss solved it by adding that package: yarn add acorn-walk

2reactions
lucpotagecommented, Oct 12, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not use nuxt-i18n at all · Issue #137 - GitHub
What is actually happening? When I run yarn run dev I am getting this error message: INFO Building project. ✖ fatal /home/begueradj ...
Read more >
Nuxt 3 + Tailwind + Eslint + i18n + Sentry Starter - Localazy
In this article, I will guide you through the initial setup we're currently using at Localazy. Do note that the Nuxt v3 is...
Read more >
Having problems getting vue-i18n to work with nuxt generate
Everything works as intended when I use the local server but my language switcher isn't updating any of the translation fields when I...
Read more >
Basic Usage - i18n-module
To do this, @nuxtjs/i18n registers a global mixin that provides some helper functions: localePath – Returns the localized URL for a given page....
Read more >
A Guide to Localizing with Nuxt.js | Phrase
In this tutorial, we'll use a library called nuxt-i18n , based on vue-i18n ... There are instances where not every word would need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found