'`yarn run dev` creates .next folder and does not let me make changes

I am trying to run yarn run dev on my Next.js app but it always builds the .next directory and doesn't update the code for me to test. It seems to be using the build folder even though I am trying to run a dev copy. It's straight from create next app so not sure why it's doing this all of a sudden. Even deleting .next file just recreates it on save.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source