Next.js Discord

Discord Forum

Local development with next problem

Unanswered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
So I fired up my code and did some normal code changes, and I started getting this errors randomly
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
    at AppContainer (/home/spcbfr/dev/nextjs-blog/node_modules/next/dist/server/render.js:341:29)
    at AppContainerWithIsomorphicFiberStructure (/home/spcbfr/dev/nextjs-blog/node_modules/next/dist/server/render.js:377:57)
    at div
    at Body (/home/spcbfr/dev/nextjs-blog/node_modules/next/dist/server/render.js:677:21)
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
    at AppContainer (/home/spcbfr/dev/nextjs-blog/node_modules/next/dist/server/render.js:341:29)


I kept having this warning for a bit then after a while of removing and editing code it suddenly went away, but got replaced with this weird artifact: everything is happening twice, ie for every change in the code I get two event compiled and 2 wait compiling I think this is related to the first problem

- event compiled client and server successfully in 2.4s (3254 modules)
- wait compiling...
- wait compiling...
- event compiled client and server successfully in 826 ms (3269 modules)
- event compiled client and server successfully in 1242 ms (3254 modules)
- wait compiling...
- wait compiling...
- event compiled client and server successfully in 432 ms (3269 modules)
- event compiled client and server successfully in 439 ms (3269 modules)

2 Replies

Saltwater CrocodileOP
my guess is that 2 npm sessions somehow got merged and are now running together and causing problems
Erythrina gall wasp
hi everybody
i encounter a problem with the pnpm install in the develop local canary branch .
it runs and runs for ever , during it once my connection lost and then i run the command again , but it took a while and nothing changed, i gave it enough time , no logs on console even . what do you thing is the cause for this ?