Can not use nuxt-i18n at all
See original GitHub issueVersion
Reproduction link
https://github.com/begueradj/nuxti18nerror
Steps to reproduce
- Either clone my project and follow the README file instructions
- 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 filenuxt.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:
- Created 5 years ago
- Reactions:1
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone facing this issue, my boss solved it by adding that package:
yarn add acorn-walk
Just added a pull request: https://github.com/nuxt-community/nuxt-i18n/pull/138