-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Fresh project on Windows fails if not used with WSL #688
Comments
Thanks @DmitryEfimenko. Analog has been confirmed to work on Windows using WSL. You must also be on Node >= 18.13.0 |
confirming that it works from WSL. Although I'd, of course still prefer to have native Windows support. |
Of course. If you'd like to look into the path issue that would help, as I don't have a Windows machine |
I can confirm that a build on a newly created project on windows fails:
The static pages are not generated. I am still trying to figure out how I can handle this.
|
I can confirm, that native support is still an issue on Windows. Resolving this issue migth speed up the adoption of analogjs. |
Can someone try setting the analog({
workspaceRoot: '.'
}) |
Hello Brandon. I've been dealing with this issue for a couple weeks now. I added the 'workspaceRoot' idea you had and I can confirm, it does not fix the issue. I also tried replacing the '.' value with 'file://' but that lead to a no such file or directory error. I'll keep digging on this issue but may need to do the workaround of installing WSL. |
I tried the above, still the same issue. |
Hi, I am also using windows and I got similar issues. So WSL is the workaround for me as well. In my case (windows 11, latest analog, node 20.10.0 & angular 17), the same error occurs in nitropack when running the prerender of SSG. It seems to be not only a problem of analog framework, actually here are related issues in nitro repo nitrojs/nitro#718 In addition that problem is located in the prerenderer.mjs . If you look for UPDATE After debuging a littel bit I got it working under windows by prefixing Adding to
Then all static html files are generated properly. So I will give another try to debug in the call chain to figure out if is a real issue in nitro or a wrong configuration in analog. |
@angelfraga The thing is, that I am running multiple nuxtjs projects (which is built around nitro) on my windows machine without having any path problems ever. So most likely the problem lies be somewhere in between analog and nitro. |
Please provide the environment you discovered this bug in.
Windows
Which area/package is the issue in?
create-analog
Description
I'm on a Windows as well. Tried starting a fresh project following "Getting Started" docs. Immediately received an error when attempted to start the project:
Please provide the exception or error you saw
The text was updated successfully, but these errors were encountered: