Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'options' of null #85

Closed
mahnuh opened this issue May 10, 2018 · 7 comments
Closed

TypeError: Cannot read property 'options' of null #85

mahnuh opened this issue May 10, 2018 · 7 comments

Comments

@mahnuh
Copy link

mahnuh commented May 10, 2018

Version

v3.2.0

Reproduction link

https://github.com/nuxt-community/starter-template

Steps to reproduce

  • init project using nuxt starter template
  • add nuxt-i18n

What is expected ?

npm run dev will work

What is actually happening?

When running npm run dev: http://sharedby.manuel-heidrich.com/UFFUYf/5lcBWAFook

and the browser only shows Cannot GET /

This bug report is available on Nuxt.js community (#c80)
@ghost ghost added the cmty:bug-report label May 10, 2018
@FransTwisk
Copy link

I was about to open an issue for this as well, but you beat me to it! Experiencing the exact same thing after upgrading from v2 and adjusting all necessary configurations.

@mahnuh
Copy link
Author

mahnuh commented May 10, 2018

@FransTwisk how did you configure it?

@FransTwisk
Copy link

FransTwisk commented May 10, 2018

Options are stored in config/i18n.js and imported into nuxt.config.js:

const { I18N } = require('./config/i18n.js')

['nuxt-i18n', I18N]

Resulting in the above error. This worked fine on v2.

@mahnuh
Copy link
Author

mahnuh commented May 10, 2018

3.0.0 and 3.1.0 do not work as well.

@paulgv paulgv closed this as completed in e909837 May 10, 2018
@paulgv
Copy link
Collaborator

paulgv commented May 10, 2018

Hi! This should be fixed in v3.2.1, it looks like an issue with latest releases of esm, the version is now locked to 3.0.28 which should work properly!

@mahnuh
Copy link
Author

mahnuh commented May 10, 2018

Awesome, thanks!

@FransTwisk
Copy link

Can confirm it's fixed. Thanks!

farnabaz added a commit to farnabaz/i18n-module that referenced this issue Mar 25, 2021
* feat(slots): support customizable slots

* Improve UI

* increase docus components level to allow overwriting

* Add docs

* chore: improvements

* chore: improvements + add docus ui widget

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants