Skip to content
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

Can't run lit.dev on windows #1249

Open
VandeurenGlenn opened this issue Nov 3, 2023 · 6 comments
Open

Can't run lit.dev on windows #1249

VandeurenGlenn opened this issue Nov 3, 2023 · 6 comments

Comments

@VandeurenGlenn
Copy link

VandeurenGlenn commented Nov 3, 2023

When trying to run build the script fails when running the fonts:manrope script

  • rm (does not exist on windows)
  • cp (does not exist on windows)
  • mkdir -p (invalid syntax on windows)

I fixed those by changing the command by node scripts/fonts.js

After that some error with samples (D:\Workspace\lit\lit.dev\packages\lit-dev-content\samples\js_check-code-helpers.ts) is in a wrong path or the scipt is searching the wrong one

image

@AndrewJakubowicz
Copy link
Contributor

Thank you for filing this issue! Could _check-code-helpers.js not have been built into its expected location?

I only have occasional access to a Windows machine, but would happily review PRs that move us towards building on Windows.

@VandeurenGlenn
Copy link
Author

Hi @AndrewJakubowicz, thanks!
I'm back to windows all the time for a long time now, spilled monster on the MBP 😢

The _check-code-helpers.js file is in the samples dir while the script expects it to be in samples/js
But in generate-js-samples.ts I can see that the js folder should not be included into the glob to pass to TS so maybe that is the problem.

#1255

@VandeurenGlenn
Copy link
Author

No clue

image

@augustjk
Copy link
Member

augustjk commented Nov 5, 2023

Thank you for raising this! We definitely should try and make this repo buildable in Windows.
In the meantime, I have found WSL2 to be quite good as a dev environment on Windows.

@VandeurenGlenn
Copy link
Author

@augustjk
True WSL is great, but also a hassle plus somehow breaks from time to time imo WSL i awesome when your cross compiling etc,but for a node project it's quite simple to get it working the issues are really small like using the correct separator for paths.
Only issue is with eleventy now all the other stuff I already fixed (if Mac and Linux isn't broken now).

@VandeurenGlenn
Copy link
Author

WSL doesn't work also, just installed new distro & think it tries to use npm installed on the windows side.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants