skyrpex / laravel-nuxt-js

Build a SPA with Laravel and Nuxt.
https://www.npmjs.com/package/laravel-nuxt
MIT License
146 stars 20 forks source link

Module i18n not working #34

Closed AlexFN closed 5 years ago

AlexFN commented 5 years ago
  1. Install module: npm i nuxt-i18n
  2. Then add the module to nuxt.config.js
    
    const laravelNuxt = require("laravel-nuxt");

module.exports = laravelNuxt({

modules: [
    'nuxt-i18n',
],
plugins: [],
i18n: {},

});

3. And then run `npm start`

Error: Could not compile template /Users/User/Project/node_modules/nuxt -i18n/src/plugins/routing.js: MODULE_NAME is not defined

AlexFN commented 5 years ago

Old version.....

"laravel-nuxt": "^1.0.0",

Replaced by "laravel-nuxt": "^2.0.0", it works!