-
Notifications
You must be signed in to change notification settings - Fork 352
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
Support developing on Windows #38
Comments
Carrying over the conversation from that ticket, this line is indeed problematic. covid19_scenarios/config/nodemon/dev.json Line 32 in 00a3b2f
It's an easy fix; that last bit of the command should look like The next thing making the Windows build fail is that My first thought was that there might be a way to get get yarn to tell us which script we need. But while |
If someone wants to develop on Windows right now, before this issue is resolved: consider enabling Windows Subsystem for Linux for development. |
I'll look into this now |
@rcbevans Hi Rich, thanks! |
Hi, Note: Below steps are not only required for this project, I recommend you to use WSL + Ubuntu for ANY non-windows specific project (Windows is not the best platform for javascript develop). So this is something that you will need to do only once, and then benefit of all the *nix improved developer experience. Steps:
6?) For contributing: you will also need a version control management solution, but this is something you should be already familiar with. @ivan-aksamentov May I add this steps into a CONTRIBUTING.md file or the README.md file? I'll create the PR by myself for you just to merge. |
@ivnnv is there any option to run this only using windows 10 (without Windows Subsystem for Linux) |
Hi @ivnnv I tried windows subsystem approach. But I am stuck here when I run "yarn dev" for nodemon also got the same error so I installed it globally. Maybe dev dependencies are not properly installed or something ? Any clue ?
|
@maktarsis, as suggested, its much easier and future-proof to use WSL for any JS development,, I wont even try to waste time trying to run any JS project without WSL. @dilantha111 dependencies are properly set, I didn't do anything special butof following the steps one by one (remember to have .env file, to have installed and using the exact version of node (12.16.1), remove node_modules and install again. |
@ivnnv I am not sure what went wrong first. But I cloned it to the inside the ubuntu. And connected with vscode remote-wsl plugin. Now it's working fine. Thanks. |
@dilantha111 @ivnnv @maktarsis @jamesgecko @AmadeusW @rcbevans @kmid5280 @alfredorevilla Could you please check this setup in plain Windows CMD for me branch
and then
Please clone fresh as shown above! |
I'll give it a try shortly. I got most of the way there there on Friday before a Sev0 came up at work and I didn't get back to this, sorry! |
I can confirm that it works on windows 10 |
consider to pull it in master asap |
Windows 10 here. It works with the following warning:
Additionally, the I can open the compiled site in the browser and click around without any obvious issues. Side note, it appears to behave identically for me regardless of if I'm doing a fresh clone or pulling down the branch in an existing clone with the following commands.
|
Thanks folks! It's on master now. Here is a summary of changes: The warning in covid19_scenarios/config/webpack/webpack.client.babel.ts Lines 327 to 339 in 28b1468
I suspect path separators need to be adjusted for Windows. |
@ivan-aksamentov So far so good on my end. It's running on my machine with the recent changes. |
@eloisetaylor5693 reported that
Could it be just a Windows Firewall one-off issue? Or is it systematic? Do you folks have any thoughts on that? Feel free to patch if needed. |
My Windows 10 machine does not respond to 0.0.0.0. I can ping 127.0.0.1 but not 0.0.0.0. This seems to be a "loosely defined concept that is implemented differently on various platforms" thing. Your VM's network driver may be binding it. https://superuser.com/a/950021 |
@jamesgecko, so does current dev setup work for you or not? My VM does not have a network adapter. Maybe it does some magic otherwise, but again it works for 5 people above on their machines. All I care is that you can run If it does not, please submit the PR that fixes it or uses a configurable variable for host param |
Yes, |
I am closing this then. If someone has any other suggestions, please open another issue or a PR. |
Currently we only support Unix-based platforms and the dev configuration contains some Unix-isms that Windows cannot digest.
We want to support running the app on windows as well, to reach more contributors.
See also:
The text was updated successfully, but these errors were encountered: