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

Next.js not watching file changes inside node_modules folder #3162

Closed
1 task done
chemzqm opened this issue Oct 24, 2017 · 1 comment
Closed
1 task done

Next.js not watching file changes inside node_modules folder #3162

chemzqm opened this issue Oct 24, 2017 · 1 comment

Comments

@chemzqm
Copy link

chemzqm commented Oct 24, 2017

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When I change javascript files inside node_modules folder, the related bundles should get recompiled.

Current Behavior

I have to restart next server to get the javascript file inside node_modules recompiled.

Context

I'm sure that webpack watch mode and webpack-dev-middleware have support for recompile bundle whenever any related javascript file changes, but it looks like next disables that and use watcher of itself instead.

This behaviour makes debug by tweak code in node_modules very painful.

Your Environment

Tech Version
next 4.1.3
node 8.5
OS MacOS
browser any
etc
@chemzqm chemzqm changed the title Next.js not watching file changes of node_modules folder Next.js not watching file changes inside node_modules folder Oct 25, 2017
@chemzqm chemzqm closed this as completed Nov 9, 2017
@lock
Copy link

lock bot commented May 10, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant