blitz-js / babel-plugin-superjson-next

Automatically transform your Next.js Pages to use SuperJSON
MIT License
125 stars 15 forks source link

Crash when hitting fallback on getStaticPaths #15

Closed alexrohleder closed 3 years ago

alexrohleder commented 3 years ago

hey,

when using getStaticPaths with fallback: true I get this error every time I reach an route that was not returned by this function, in other words whenever the fallback is activated:

Error: Not a valid SuperJSON payload.

here is a reproduction repo:

  1. https://github.com/alexrohleder/superjson-next-error-repro
  2. go to any route other than index
Skn0tt commented 3 years ago

Thanks for letting us know! I‘ll look into it.

Skn0tt commented 3 years ago

@allcontributors add alexrohleder for bugs

allcontributors[bot] commented 3 years ago

@Skn0tt

I've put up a pull request to add @alexrohleder! :tada: