i18n: Cannot read property 'headers' of undefined after Nuxt Generate
Hello,
another error appears after run npm run generate.
Steps:
-
try create a new nuxt project like:
vue init vuetifyjs/nuxt my-projectthennpm installoryarn -
install this
nuxt-i18nplugin:yarn add nuxt-i18nthen add some configuration tonuxt.config.js. -
npm run devworks fine. -
npm run generateshows many errors: like this:
ROUTE /en/pages/about
TypeError: Cannot read property 'headers' of undefined
- server-bundle.js:5621 module.exports.__webpack_exports__.default
server-bundle.js:5621:43
- server-bundle.js:1902 promisify
server-bundle.js:1902:15
- server-bundle.js:1883 middlewareSeries
server-bundle.js:1883:10
- server-bundle.js:5465 module.exports.__webpack_exports__.default
server-bundle.js:5465:81
-
im sure that the errors from this plugin, i have disabled it from
nuxt.config.js, and re runnpm run generateand everything works fine. -
is this plugin works with
npm run generate?
any help!
<div align="right">This question is available on Nuxt.js community (#c43)</div>About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 31
Commits related to this issue
- Remove `differentDomains` https://github.com/nuxt-community/nuxt-i18n/issues/53 — committed to haiiro-io/violet by hmsk 5 years ago
- Remove `differentDomains` https://github.com/nuxt-community/nuxt-i18n/issues/53 — committed to haiiro-io/violet by hmsk 5 years ago
I could solve this problem to check
reqvalue.