Replies: 4 comments 4 replies
-
Our team is experiencing this as well. What accounts for this line being added when we're all working on the same codebase and how should we make it consistent? According to this related thread, there may have been some advice in the docs to
|
Beta Was this translation helpful? Give feedback.
-
Actually I think I found the issue in my case. I think this is what cause the Once I deleted the ghost folder, It stoped updating this file |
Beta Was this translation helpful? Give feedback.
-
nextjs version used: 15.2.3 I can confirm that this error does occur when a phantom folder is created somewhere. Next.js then behaves in a very strange and sometimes quite frustrating way, as the errors it produces seem completely unrelated. Take the following example:
But that is not all. You may also notice other strange behaviors, such as:
These anomalies can make you think you missed an error, even after thoroughly testing before committing. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this error does occur when a phantom folder is created somewhere |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We are two developers working on the same codebase.
When I run
next dev
a line innext-env.d.ts
gets added for me locally but does not happen on the other developer's machine.I cleaned
node_modules
, tried to cleanyarn cache
but no luck./// <reference types="next" /> /// <reference types="next/image-types/global" /> + /// <reference types="next/navigation-types/compat/navigation" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions