TylerBarnes / gatsby-plugin-transition-link

A link component for page transitions in gatsby
537 stars 71 forks source link

Generating SSR bundle failed saying it's not possible to compile spread arguments in `super()` #258

Closed ggbellotti closed 3 years ago

ggbellotti commented 3 years ago

Hi guys! Thank you for the excellent work you have been doing with the plugin.

After adding the cache system in gatsby, I went to build the project and ended up with this error. Even others have also encountered this error, but with other plugins. Gatsby / #29326

Some found a solution to be able to run in production. However, these solutions did not work for gatsby-plugin-transition-link.

How can I resolve this error? Hugs!

Captura de tela 2021-02-04 121338

ggbellotti commented 3 years ago

Whoever is using an old version of gatsby, "gatsby": "2.32.2", the solution is this:

yarn:

https://github.com/gatsbyjs/gatsby/issues/29326#issuecomment-773528644

npm

https://github.com/gatsbyjs/gatsby/issues/29326#issuecomment-773924654


More details:

https://github.com/gatsbyjs/gatsby/issues/29326#issuecomment-774217698