-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Use Path module functions and properties in server and generate #490
Conversation
npm-debug.log
|
@Happy-Ferret is that error different than what you were getting before? Sent with GitHawk |
I wasn't getting any errors prior to that (it just wouldn't copy the Will see if I can debug it later. |
Well, I think this may be progress at least. It is trying to do something in the right directory, this time. The question is why is it throwing an error. I guess it is time for me to spin up a Windows VM 😄 |
Lol. If you do, let me be the first to welcome you to Microsoft Windows development hell. |
We want to be more robust in our path string handling in order to not fail on various platforms. Fixes facebook#468
fc63829
to
a3fc7a3
Compare
@Happy-Ferret Using my Windows VM - which has been, um, fun 😄 - I think I fixed the issue. If you would like to double check me by testing, I would appreciate it. The build should now produce files in both the root and |
Installed your changes via Output:
Am I doing something wrong? |
@Happy-Ferret No. I forgot something 😄 I normalized some files after Can you try now? |
Same error still and it fails at the |
Ah right - it is because of this:
it is using the |
@Happy-Ferret Ok. 04e836f 🤞 |
Out of curiosity: What kind of Windows VM are you testing your code on? Windows 10 with WSL (bash) or CMD? The latter should be the target, as WSL ran fine with just the regular POSIX compliant code anyways. |
@Happy-Ferret it has been a while since I have used Windows - so I bet I have been using the wrong cli then. Tomorrow, I will use ‘cmd.exe’ and see what happens. I think we are close though. Just to verify, can you run the local web server successfully still via ‘npm start’ ?? Sent with GitHawk |
Yep. |
@Happy-Ferret Ok. I got it to build with |
I am going to merge this. If I missed something, I can push more fixes separately. However, I think this solves a lot of the Windows issues that were happening. |
`'en'` is written as `en`
`'en'` is written as `en`
Fixes #468
Motivation
We want to be more robust in our path string handling in order to not fail on various platforms.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Local Docusaurus site testing
Related PRs
N/A