Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Missing files in gatsby-i18next node_modules folder #3

Closed
Pustelto opened this issue Nov 30, 2018 · 6 comments
Closed

Missing files in gatsby-i18next node_modules folder #3

Pustelto opened this issue Nov 30, 2018 · 6 comments

Comments

@Pustelto
Copy link

Hi @hupe1980 , I want to use your plugin for one project I'm working on. But I'm unable to do so. When I type npm start I always get errors like this during startup: Error: Cannot find module './lib/plugin' and once localhost starts I get error:

These relative modules were not found:

* ./Head in ./node_modules/@wapps/gatsby-i18n/lib/index.js
* ./I18nContext in ./node_modules/@wapps/gatsby-i18n/lib/index.js
* ./Language in ./node_modules/@wapps/gatsby-i18n/lib/index.js
* ./Link in ./node_modules/@wapps/gatsby-i18n/lib/index.js
* ./Redirect in ./node_modules/@wapps/gatsby-i18n/lib/index.js

I have checked content of node_modules folder of gatsby-i18next and there files are indeed missing. Is there some bug in released package or I'm doing something wrong. I couldn't find any relevant info on this.

Thanks for help.

@hupe1980
Copy link
Owner

hupe1980 commented Nov 30, 2018

Hi @Pustelto... the bug is fixed

@Pustelto
Copy link
Author

Pustelto commented Dec 3, 2018

Oh, thanks for quick response. I will try it today.

@Pustelto
Copy link
Author

Pustelto commented Dec 3, 2018

It works fine now, thank you for help.

@Pustelto
Copy link
Author

Pustelto commented Dec 3, 2018

Hi @hupe1980, still getting one error:

error Plugin @wapps/gatsby-plugin-i18next returned an error:
Error: Cannot find module '@wapps/gatsby-i18n/src/plugin/fragments.js'

Also, can I somehow config i18next options? Like keySeparator. I have paragraph to translate and periods after sentence are treated as key separators so the key is nested and translation do not work. I need to turn this of.

Thanks

@hupe1980
Copy link
Owner

hupe1980 commented Dec 3, 2018

Hi @Pustelto... the bug is fixed and i added i18nextOptions as pluginOptions...
Look at the starter if you need an example.

@Pustelto
Copy link
Author

Pustelto commented Dec 4, 2018

Hi, thanks for great support. Took me a little bit time to oriented in the plugin (but that was due to me going over several i18n solutions for gatsby) but the plugins is great and really easy to use in the end. 👍

@hupe1980 hupe1980 closed this as completed Dec 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants