menu

Next.js

A place to chat about Next.js and answer questions. For all other ZEIT products, check this out.

Channels
Team
Posts
Members
Info

Why getting a route query throws an error?

Hey, I'm trying to use Apollo with Next.js and I can't get a route query inside of a component. It says that router is undefined. Is there anything that I'm doing wrong?

thumbsup
0
message-simple
0
·4h·Pinned# General

Companies / Sites using Next.js

ZEIT - https://zeit.co Netflix - https://jobs.netflix.com/ Trulia - https://twitter.com/Timcorreia/status/950974800234668032 …

thumbsup
139
message-simple
588

How to catch exception thrown in `getInitialProps` in `_error.jsx`

I really want to throw an exception in my page getInitialProps and catch it in my _error.jsx page. It does seem to work client-side, where I do get the exception in context.err, but it does not work service side. When the exception is thrown there, the err is null. Why is this?…

thumbsup
0
message-simple
0

Can't load scss firsttime when change to another page (Ant Design)

I have a problem can't load a scss file when change page to another page. The scss is not loaded on first time (Must be F5 / refresh page) then loaded. Do you know why ? …

thumbsup
2
message-simple
2

Hihi, i am on 9.1.2, is there a way to import .scss into .tsx pages?

thumbsup
1
message-simple
7

What's the recommended way to use an SVG as the favicon in a Next.js app?

I have a logo as an SVG, and I'd like to use it as the favicon in my Next.js app. Is there a recommended way to do this? And/or any useful libraries that's easy to configure with Next.js? The aim is that I don't want to manually have to convert this SVG into various favicons and…

thumbsup
0
message-simple
0

nextjs + express server (nest) vs nextjs + laravel/django separate server?

What is the real disadvantage of having nextjs with say django/laravel backend? or: what is the advantage for having express server + nextjs? …

thumbsup
1
message-simple
2

I am trying to deploy my website getting the following error

Error! ACME request was unauthorized

thumbsup
0
message-simple
0

Was hoping to better understand the flow of how getInitialProps work

I'm trying to get the apolloClient in getInitialProps much similar to with-apollo-auth example with nextjs but noticing it never appearing. As I put debuggers around, I also noticed the getInitialProps runs first before it even goes to the withApollo function which can be the…

thumbsup
0
message-simple
0