next.js icon indicating copy to clipboard operation
next.js copied to clipboard

, hot reloading does not work with app

Open theEngMansour opened this issue 3 years ago • 3 comments

Describe the feature you'd like to request

, hot reloading does not work with app

Describe the solution you'd like

, hot reloading does not work with app

Describe alternatives you've considered

, hot reloading does not work with app

theEngMansour avatar Oct 29 '22 07:10 theEngMansour

I had the same problem when I installed the latest version on an existing project. Turns out the tsconfig.json has new options required so I just added these:

 "incremental": true,
 "plugins": [
    {
       "name": "next"
    }
 ]

jmcruzmanalo avatar Oct 29 '22 07:10 jmcruzmanalo

I had the same problem when I installed the latest version on an existing project. Turns out the tsconfig.json has new options required so I just added these:

 "incremental": true,
 "plugins": [
    {
       "name": "next"
    }
 ]

I have the same issue but tsconfig.json is already auto configured. Server complies normally and client webpack websocket receives change notification but it doesn't trigger refetch.

ha1fstack avatar Oct 29 '22 08:10 ha1fstack

image

I also get this error in the console

yasssuz avatar Oct 29 '22 22:10 yasssuz

I just started a new Next.js 13 and hot reloading was working. I added the app folder and included the experimental: {appDir: true} to the next.config.js. I got errors and now hot reloading throws errors in navigation.js.

I deleted the node_modules and tried to uninstall react-router. No changes; same error. I do have a Link import from 'next/link' in one of the components. I removed it but still received the same error. I don't have any other routing in the application.

Application dependencies in package.json: "dependencies": { "@types/node": "18.11.9", "@types/react": "18.0.25", "@types/react-dom": "18.0.9", "bootstrap": "^5.2.2", "eslint": "8.28.0", "eslint-config-next": "13.0.4", "next": "13.0.4", "react": "18.2.0", "react-dom": "18.2.0", "typescript": "4.9.3" }

hotreloaderror

brianhankins avatar Nov 21 '22 06:11 brianhankins

This issue has been automatically closed because it received no activity for a month and had no reproduction to investigate. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.

balazsorban44 avatar Dec 23 '22 23:12 balazsorban44

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

github-actions[bot] avatar Jan 23 '23 00:01 github-actions[bot]