Recently, when I try to start a localhost web server using NPM run dev on a mac terminal, I get the following error message:
compiling /_error (client and server)...
I haven't changed my package.json and tried to restart the server several times, but my web app refuses to load up on localhost. I'm also using VSCode and Next.js for development
Any help would be appreciated, Thanks
CodePudding user response:
Try to delete node_modules
file and package-lock.json
file
then rerun this command: npm install
CodePudding user response:
I actually already solved my problem. You also want to your components and syntax for any unused or leftover code you might not be using anymore. For me, I had code in my next.config file that stopped my web app from compiling