You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got some warnings when using nuxt-i18n 2.3.0 with the last version of the starter template.
warning in ./static/robots.txt
Module parse failed: Unexpected token (1:10)
You may need an appropriate loader to handle this file type.
| User-agent: *
| Disallow: /
@ . lazy ^\.\/.*$
@ ./.nuxt/i18n.utils.js
@ ./.nuxt/i18n.plugin.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js
I suspect this is due to the regex in the latest lazy loading feature. If you make an error in your configuration, let's say you don't specify the langDir property, then, you will get this error. Maybe, you could prompt a clearer message in such a case.
In async loading mode, if the language file does not exist, there is no error in the terminal.
Hope this can help improve this module.
This question is available on Nuxt.js community (#c14)
The text was updated successfully, but these errors were encountered:
lucpotage
changed the title
Warning with Nuxt starter template
Warning when langDir is not specified
Feb 20, 2018
I got some warnings when using nuxt-i18n 2.3.0 with the last version of the starter template.
I suspect this is due to the regex in the latest lazy loading feature. If you make an error in your configuration, let's say you don't specify the
langDir
property, then, you will get this error. Maybe, you could prompt a clearer message in such a case.In async loading mode, if the language file does not exist, there is no error in the terminal.
Hope this can help improve this module.
The text was updated successfully, but these errors were encountered: