cannot build if dev server is running
Answered
Sweat bee posted this in #help-forum
Sweat beeOP
if I have a dev instance running and want to build the app with next build my app just crashes and the build doesn't go through...
if I refresh the dev server it says missing required error components, refreshing... and I am getting 500 Server Errors
maybe its because I am using --turbo
disabling it I can build the app while running it in dev mode but yet after I start to build and refresh my page I suddenly lose my styles (using tailwind)
any idea whats going?
if I refresh the dev server it says missing required error components, refreshing... and I am getting 500 Server Errors
maybe its because I am using --turbo
disabling it I can build the app while running it in dev mode but yet after I start to build and refresh my page I suddenly lose my styles (using tailwind)
any idea whats going?
Answered by joulev
both the dev server and the build process reads from and writes to the
.next folder, so if you run both at the same time you can run into unexpected scenarios where the process sees something in .next that it doesn't anticipate6 Replies
@Sweat bee if I have a dev instance running and want to build the app with next build my app just crashes and the build doesn't go through...
if I refresh the dev server it says missing required error components, refreshing... and I am getting 500 Server Errors
maybe its because I am using --turbo
disabling it I can build the app while running it in dev mode but yet after I start to build and refresh my page I suddenly lose my styles (using tailwind)
any idea whats going?
both the dev server and the build process reads from and writes to the
.next folder, so if you run both at the same time you can run into unexpected scenarios where the process sees something in .next that it doesn't anticipateAnswer
so: don't run both at the same time
Sweat beeOP
ah ok that makes sense
can I change the output folder then?
or do they need to access the same output folder?
@Sweat bee can I change the output folder then?
No I don’t think that’s possible