gatsby-plugin-i18n icon indicating copy to clipboard operation
gatsby-plugin-i18n copied to clipboard

Warning: plugin used reserved field name "path"

Open sedubois opened this issue 6 years ago • 5 comments

The Gatsby build throws this warning (does not seem to lead to bugs but should be fixed I guess):

12:46:53 PM: warning The plugin "gatsby-plugin-i18n" used a reserved field name in the context object when creating a page:
12:46:53 PM:   * "path"
12:46:54 PM: {
12:46:54 PM:     "path": "/en/blog/2015-09-04-born-to-be-good/",
12:46:54 PM:     "component": "/opt/build/repo/src/templates/blog-post.js",
12:46:54 PM:     "context": {
12:46:54 PM:         "path": "/en/blog/2015-09-04-born-to-be-good/",
12:46:54 PM:         "langKey": "en"
12:46:54 PM:     },
12:46:54 PM:     "layout": "en"
12:46:54 PM: }

sedubois avatar Mar 01 '18 10:03 sedubois

somebody found a workaround to resolve it?

marco-carvalho avatar May 17 '18 14:05 marco-carvalho

Hi :wave:

Correct me if I'm wrong: this has been fixed in #56, but the warning remains for backward compatibility?

Thank you :raised_hands:

robinmetral avatar Apr 29 '19 20:04 robinmetral

@sedubois how do you resolved the problem? I have that problem too

RafaelEsaa avatar May 30 '19 20:05 RafaelEsaa

@RafaelEsaa I stopped using this plugin as it had various issues and wasn't quite necessary for me.

sedubois avatar May 31 '19 06:05 sedubois

Any resolve on this one? I'm still seeing this warning on build.

Edit: I ended up just patching it myself.

potatowave avatar May 13 '20 18:05 potatowave