Gatsby Plugin Error - Cannot read properties of undefined (reading 'setParserPlugins') #1847
-
I get this error when building a Gatsby starter kit on the server for production, I have tested the code on 3 different computers and it works locally on MacOS and Windows, however when on the server (Ubuntu) I cannot build the code. This is the error I get, Im a bit new to Gatsby and this plugin, any help is very appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It may be worth checking that the versions of packages used locally and on the server are the same and are using a recent version of Gatsby and it's plugins. It would also be worth asking the Gatsby team for their thoughts, as they are the maintainers of the code that appears to be throwing the error https://github.com/gatsbyjs/gatsby/discussions |
Beta Was this translation helpful? Give feedback.
gatsby-plugin-mdx
is maintained by Gatsby, looking at their issue tracker https://github.com/gatsbyjs/gatsby/issues?q=is%3Aissue+setParserPlugins+is%3Aclosed it looks like there were some recently fixed issues for plugin loading.It may be worth checking that the versions of packages used locally and on the server are the same and are using a recent version of Gatsby and it's plugins.
It would also be worth asking the Gatsby team for their thoughts, as they are the maintainers of the code that appears to be throwing the error https://github.com/gatsbyjs/gatsby/discussions