Webpack hot reloading stops working if projects is located in a folder starting with ".git-----" #75371
Closed
1 task done
Labels
invalid link
The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
Verify canary release
Provide environment information
Which example does this report relate to?
default
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
If the parent folders of a nextjs application start with ".git", the webpack dev server (without
--turbo
) will not hot reload any changes made to the app.Example paths of this might be:
/path/to/my/.git-projects/nextjs-app
(this is my setup, which is how I found this in the first place)/path/to/my/.git-projects/a/b/c/nextjs-app
-
/path/to/my/.git/nextjs-app
This is no longer an issue when using Turbopack.
I honestly don't expect this to be fixed, but I would love for others, who are facing a similar issue, to find this and spare them of multiple hours of wondering why this isn't working as expected.
Expected Behavior
Hot reloading should work.
To Reproduce
.git
(example.git-projects
)npx create-next-app@canary
and select defaults)next dev
(without--turbo
)src/app/page.tsx
The text was updated successfully, but these errors were encountered: