Top "Nextjs" questions

Next.

React - componentWillReceiveProps alternative

I use React with NextJS. I have a component which is basically a table which gives some summary. Based on …

reactjs nextjs
How do I detect I am on server vs client in Next.js

I am using a customer express server with Next.js. It's running within a container. I am doing an http …

express nextjs
Using getInitialProps in Next.js with TypeScript

From the documentation, Next.js 5.0 announcement and various articles around on the internet it seems like Next.js supports TypeScript …

typescript definitelytyped nextjs
NextJS cannot find a valid build in the '.next' directory

I looked at the following question before asking this one but I believe mine is different because I am not …

node.js heroku nextjs
Next.js return the 404 error page in getInitialProps

Currently I am following this example on how to redirect users in getInitialProps https://github.com/zeit/next.js/wiki/…

javascript node.js serverside-javascript next.js nextjs
Nextjs: Unable to load images from static folder

How can I load images in a component in Next.js? Do I have to build the project first? If …

reactjs webpack nextjs
Conditional redirection in Next.js

Is it possible to conditionally redirect a user to another Url based on cookie value? I know I can inspect …

javascript reactjs server-side-rendering nextjs
How to set up Google Analytics through Google Tag Manager for Next-Js?

formerly I was using react-ga npm module to insert google analytics in my next js app. and It was simply …

google-tag-manager nextjs
How to import external css file in nextjs app

I am working on react based nextjs app. Some npm packages are using external css import. I am getting error …

reactjs nextjs webpack-loader css-import
React + Material-UI - Warning: Prop className did not match

I'm having difficulty with differences between client-side and server-side rendering of styles in Material-UI components due to classNames being assigned …

node.js reactjs material-ui nextjs