Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload not working (Always performing a full reload) #21752

Closed
0xabdou opened this issue Feb 1, 2021 · 4 comments
Closed

Hot reload not working (Always performing a full reload) #21752

0xabdou opened this issue Feb 1, 2021 · 4 comments
Labels
bug Issue was opened via the bug report template.

Comments

@0xabdou
Copy link

0xabdou commented Feb 1, 2021

What version of Next.js are you using?

^10.0.7-canary.0

What version of Node.js are you using?

v14.15.4

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying your application?

next dev

Describe the Bug

Hot reload is not working. Every time I change something in a component, a full reload is preformed. The only time it works is when I change a css file.

Expected Behavior

Hot reload should be working when I change some component.

To Reproduce

I tried to scrap this minimal project:
https://github.com/aouahib/nextjs_hot_reload
git clone, npm install, npm run dev, change the text inside src/pages/index.tsx, save, and the page will be full reloaded.

@0xabdou 0xabdou added the bug Issue was opened via the bug report template. label Feb 1, 2021
@jamesmosier
Copy link
Contributor

Remove @babel/plugin-transform-modules-commonjs from your babel.config.json. That plugin is interfering with Next's internal webpack/babel config.

@0xabdou
Copy link
Author

0xabdou commented Feb 1, 2021

@jamesmosier Thanks for the quick reply.
My app won't run without that plugin. I get weird errors like Attempted import error: 'IAuthApi' is not exported from './services/auth-api'..
I'd appreciate it if you can point me to some other workaround.

@jamesmosier
Copy link
Contributor

There's no other workaround that I'm aware of unfortunately.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants