avitorio/outstatic

Cannot read properties of null (reading 'query') on Next v13

Closed this issue ยท 6 comments

on http://localhost:3000/outstatic

I double checked the getting started config & it is correct

Server Error

TypeError: Cannot read properties of null (reading 'query')
This error happened while generating the page. Any console logs will be displayed in the terminal window.

Hey, we currently don't support Next v13. Working on adding support soon.

We've added this notice to the Adding Outstatic to a Next.js website docs:

Next.js 13 notice: At this moment we are only supporting Next.js 12. We are working hard to launch a version compatible with Next.js 13 soon!

Right now you can use Outstatic on Next.js ^12.2.6

@avitorio Hii, I'm having the same issue as OP and I'm on v12.2.5 - Any suggestions? The idea of Outstatic is amazing so I'm really hoping to make it work!

Hey @chaosparadox and @mzalevski - I've just launched version 0.0.32-rc of Outstatic which gives support for Next.js 13 and also offers backwards compatibility to some versions of Next.js 12 including 12.2.5,

Please, let me know if this version works for you! I'm closing this PR now. Thank you!

Hey @mzalevski,
This is odd. What are the contents of your pages/api/outstatic/[[...ost]].tsx file?
What versions of next and outstatic are you on?

Oh, I see what's wrong. I created another api folder in an existing api folder. My bad. It does work now. Sorry.