Replies: 19 comments 27 replies
-
Actually, I just tried to literally follow the quickstart, so I nuked my project directory, and recreated it using the command from the quickstart:
Same error. |
Beta Was this translation helpful? Give feedback.
-
Also, updating Node.js did not help. I'll update the bug report. |
Beta Was this translation helpful? Give feedback.
-
Oh I just noticed I'm also getting errors like this in the CLI. I didn't see em before because the "invalid hook call" was flooding the CLI.
I don't see why the two are different. I'm on Windows, which is case-insensitive. If there's any OS where this shouldn't happen, it'd be on Windows. The two directories mentioned there are identical. And yes, I can see the drive letter differs in casing. I can't help that. That's just absolutely unfixable. It depends on... Something. It just happens to be either upper or lowercase, and frankly in my 26 years of using Windows, this has never been a problem. So that's why I say this is a problem in next.js. But then again, I'm not sure if this has any merit to the original bug. These might be harmless warnings. No idea. |
Beta Was this translation helpful? Give feedback.
-
I could not reproduce this locally with the provided steps. Do you maybe have |
Beta Was this translation helpful? Give feedback.
-
I don't have react globally installed. As for symlinks... Uhm, I'm not aware of having created any. Where would they be? How do I check? Is it possible that this is fixed in Node.js 16.x? I'd rather upgrade only if absolutely neccesary right now, as I'm using a system install, and don't know for sure if it will break other projects. I'd have to take some time to check them first. Btw, I find it really strange that you can't repro this issue. I was able to reproduce it, time and again. I don't even know how not to reproduce it 😞 |
Beta Was this translation helpful? Give feedback.
-
I downgrade the "next" version to "^11.1.2" and the problem dissapear. I have that problem from "^12.0.0" |
Beta Was this translation helpful? Give feedback.
-
A bit of an update: I can reproduce the issue, but only on a different drive than C, for some reason. So installing Next.js on a C-drive works fine, installing it on any other drive, produces the above errors. As far as I've tested anyway. It doesn't appear to make a difference what kind of drive it is. In fact, both C and (in my case) D, are completely normal internal drives. But even a SD-card (heaven forbid developing on that...) or a mapped network drive cause the same problem as my D-drive. This makes it extremely unlikely (although still a nonzero chance) that my individual D-drive, or the way it's registered or something, is the cause of the problem. They can't all be problemtic in the exact same way across multiple computers (I've checked that too). It appears to have more to do with the fact that a D-drive is, well, not the C-drive. So... What's next? (pun intended 😀) |
Beta Was this translation helpful? Give feedback.
-
I tried to do simple clean install rom documentation aka on folder : c:\dev\boilerplate\next\nextjs-blog - didn't work (I get same errors as post author) Not working version errors command line, including error stack at the end |
Beta Was this translation helpful? Give feedback.
-
Another update: I upgraded to Node.js 16.13.1 and did a totally clean installation:
The So we have observed:
Fairly safe conclusions, for now:
Questions remain to be answered:
|
Beta Was this translation helpful? Give feedback.
-
I'm also getting the same thing with Win10, Node 14.18.1 and Next 12.0.7 on C drive. Not sure why it just started today though! |
Beta Was this translation helpful? Give feedback.
-
Can confirm that the issue doesn't happen on versions < 12.0.0. I have my project in drive D. The app works when running it via yarn, but it breaks when debugging with VSCode. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem |
Beta Was this translation helpful? Give feedback.
-
@gonzalobarria So what now? This discussion is filling with workarounds that are shoddy at best (using an alpha version, or an older version) and people having the same issue. Not only has this problem been going on for quite a while now without people able to use Next.js at all, it's also really emabrassing if following the Getting Started guide to the letter doesn't work at all. I shouldn't have to re-emphasize how utterly critical priority this issue has, or should have. * What is the next step in getting this resolved, please? * Yes, I know my tone of voice is changing, I am getting annoyed by this - I just want to use Next.js already! It's too brilliant to be destroyed by such a stupid and (presumably) small bug! |
Beta Was this translation helpful? Give feedback.
-
Sounds like a rogue This kind of issue can happen if you have used Does this reproduce on multiple machines, or only on yours? Since you mention "our pc's", could you please check this on other devices? That would indeed be helpful since we could narrow this down to either OS or user config level.) You mention TypeScript, is this an indication that the issue does not reproduce when you don't set the Others have suggested try upgrading, but you seemed to be frustrated that this is only available on The actual shown warning could be useful: https://nextjs.org/docs/messages/invalid-project-dir-casing I can also see there is a discussion already opened by you here: #32034 Since this is not a confirmed bug and there is no reliable reproduction, let's continue the discussion there, since it has already started. I'll reach out to our team to see if anyone has a better idea about what is happening. Further, I kindly ask you to refrain from negative/demanding phrases and have a read of our Code of Conduct. |
Beta Was this translation helpful? Give feedback.
-
I was able fix the problem renaming a directory in the full path to my Next.js app. First, I should note that I am using macOS which has an unusual practice of allowing
Changing the path to replace the colon with |
Beta Was this translation helpful? Give feedback.
-
Possible workaround: If you're using Total Commander, and you keep ending up with lowercase drive letters, which is what is exposing this bug, the workaround is to get them uppercase. But that's easier said than done. Luckily, I found that Total Commander has a hidden setting for this. In a nutshell: [Configuration]
DrivesShowUpcase=1
DrivesExportUpcase=1 This will, of course, not fix anything for any other tooling. So a proper solution is still neccesary. It may feel like we're done here, but as I always say in cases like this: "a workaround only proves that a solution has not been found" 😀 |
Beta Was this translation helpful? Give feedback.
-
I have the same problem as thany - I can't upgrade to nextjs 12 due to the drive capitalization error. Running windows, and powershell. I can do a workaround by running it in a WSL but then I lose hot-reloading for some reason, which greatly impacts by development speed. So for now, I have postponed the upgrade until it is fixed :( |
Beta Was this translation helpful? Give feedback.
-
I care about this project. It's awesome. And what really cool is that we've drilled down to what the actual issue is: driveletter casing. Now, as I annoyingly have asked many times before: What's next?I could create a bug to fix driveletter casing, but I'm sure it's just going to be closed again, no matter how much effort I put into describing the bug. So you understand why I'm really demotivated to do that. All the while, some of my very direct questions remain unanswered, despite the severity of this bug. So again, what's next?? Who is going to solve this issue, when will that happen, which tests are going to be added to prevent regressions, and finally, evaluate how a critical issue like this was allowed to stretch on for such a long time. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Next.js are you using?
12.0.4
What version of Node.js are you using?
14.18.2
What browser are you using?
Firefox 94
What operating system are you using?
Windows 10
How are you deploying your application?
I'm not
Describe the Bug
Error appears after a clean install with typescript:
Expected Behavior
No error, I guess.
To Reproduce
Run the following command and give it any project name you haven't created before:
Then, start it:
This will produce the error.
Beta Was this translation helpful? Give feedback.
All reactions