Comments (3)
Thanks for sending that over. Unfortunately it looks like the example they provided is wrong. The call renderPage directly from the context, rather than using the enhancer which can cause the flash reported in this issue on the nextjs repo.
I messed around with their material-next example a little bit and was able to get it working with the enhanceApp, here is the gist. However, it looks like V4 uses a new SSR API, so it isn't likely to work when they release V4 in a couple of days.
Since this isn't really related to this repo, and is more of a question about using material-ui with next I am going to close this issue. I encourage you to ask the material-ui devs about an alternative to calling renderPage directly, since other people probably are having the same issue. You may want to attach the nextjs issue (#5629) I referenced above.
from nest-next.
Hi can you provide a little more information about how you are handling your styles? I use emotion 10 and haven't encountered this issue. I also don't directly call the renderToHTML method, I call render.
Can you also provide a sample of your _document file as well as checking out this issue from the nextjs repo?
from nest-next.
Hi, @kyle-mccarthy I'm using material-ui and this _document.tsx setting. https://github.com/mui-org/material-ui/blob/next/examples/nextjs-next-with-typescript/pages/_document.tsx
BTW, Thanks for your work.
from nest-next.
Related Issues (20)
- got a lot of 404 error HOT 1
- Next "catch all routes" does not work HOT 1
- When using generate staticPaths, staticProps and then use it to get page - it always says 404. Only works for fallback: 'blocking' HOT 5
- Make an npx starter
- next.server.dynamicRoutes.map is a TypeError HOT 7
- Help with Setup HOT 2
- Cannot read properties of undefined (reading 'nextConfig') HOT 4
- Failed to serve static file from next side
- When using next router's push, the nest controller does not execute. HOT 2
- Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
- Next.js 12 hmr HOT 3
- Inject Dynamic url parameter into template HOT 5
- How to set next.config and how to use less HOT 1
- Not able to reach nest endpoints. HOT 1
- Module-wide type error (Fix included) HOT 3
- Usage with Next@13 HOT 8
- Nest routing issue with nested pages HOT 15
- nest-next test suite HOT 1
- Standalone Nest application HOT 1
- res.setHeader is not a function When i add new FastifyAdapter() HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-next.