… It was marked required but did not specify that it could not be empty string. I do not need the ability to leave it empty. But the plugin ate the error, only "createPage" threw one (below).
To Reproduce
I was using paginate in gatsby-node.js
In the Config, I left the pathPrefix blank, eg: pathPrefix: "",
I ran gatsby develop and got an Error 11323 from createPage:
Your site's "gatsby-node.js" must set the page path when creating a page.
Plugin code should throw an error when it encounters an empty required string.
Additional Context
I tried to debug the code where you create a "wrapped" config object, but the code seemed to magically flake. I barely know node and I don't know Lodash at all so that is probably the problem on my end. I come from planet Java, JSP City. I'll get better...
This is my first PR anywhere, ever! Thanks for making the plugin.
… It was marked required but did not specify that it could not be empty string. I do not need the ability to leave it empty. But the plugin ate the error, only "createPage" threw one (below).
To Reproduce
I was using paginate in gatsby-node.js In the Config, I left the pathPrefix blank, eg:
pathPrefix: "",
I ran gatsby develop and got an Error 11323 from createPage:Additional Context
I tried to debug the code where you create a "wrapped" config object, but the code seemed to magically flake. I barely know node and I don't know Lodash at all so that is probably the problem on my end. I come from planet Java, JSP City. I'll get better... This is my first PR anywhere, ever! Thanks for making the plugin.