How to prevent outdated builds in development #16490
Unanswered
steveswork
asked this question in
Help
Replies: 2 comments
-
Are you on the latest version of Next.js? Also what OS? Also getInitialProps runs in the browser when navigating. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@timneutkens thank you for asking about the OS and the version info. I am currently using next 9.3.0 on Windows 10. I am also using the next backed custom express server. My original post has now been updated with those info as well. I am using the getInitialProps really because it runs in the server and in the browser when navigating. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I make code changes in the server (e.g. a console.log statement) and ran
npm run dev
, the console.log would not display on the console.But when I remove the console.log and run
npm run dev
, the console.log is displayed. I’ve also attempted to userimraf
to remove the entire .next folder before running thenpm run dev
.Though the folder was removed and then re-created after the build, the supposedly removed console.log still appeared on the console.
How can I prevent this behavior? It Is currently confounding the development experience.
Fwiw, I’m also using:
next connected custom express server
the getInitialProps static method
Next.js version: 9.3.0
OS: Windows 10
Beta Was this translation helpful? Give feedback.
All reactions