Starter app doesn't work on Windows.
See original GitHub issueI am using Windows 10 version 21H2 Node version 16.14.0 npm version 8.3.1
I ran the following command
npm init qwik@latest
Then I chose default options (pressed enter) Then
cd qwik-app
npm install
npm start
I didn’t get an error during that process. I opened http://localhost:3000 in Google Chrome Version 99.0.4844.51 (Official Build) (64-bit) The I got a blank webpage I found the following errors in the chrome’s developer console:
GET http://localhost:3000/src/h_main_main_onmount.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ main.tsx:4
qrlImport @ qrl.public.js:21
(anonymous) @ component.public.js:305
Promise.then (async)
resolveQrl @ component.public.js:304
onRenderFactory @ component.public.js:229
qPropWriteQRL @ props-on.js:85
setEvent @ props.js:32
updateProperties @ cursor.js:484
createElm @ cursor.js:345
updateChildren @ cursor.js:95
smartUpdateChildren @ cursor.js:21
visitJsxNode @ render.js:12
render @ render.public.js:40
(anonymous) @ index.html?html-proxy&index=0.js:6
Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:3000/src/h_main_main_onmount.js
Promise.then (async)
then @ promises.js:27
render @ render.public.js:40
(anonymous) @ index.html?html-proxy&index=0.js:6
client.ts:58 [vite] connected.
I tried to run the exact same on WSL2 (Ubuntu distro) on the Same Windows machine, and the demo ran without a problem.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Program Won't Open When You Click On It in Windows 10? 7 ...
How to Fix When Windows 10 Programs Won't Open · 1. Check for App Updates · 2. Make Sure Windows 10 Is Updated...
Read more >Fix problems with apps from Microsoft Store
Fix problems with apps from Microsoft Store · Make sure Windows is up to date. Select Start > Settings > Windows Update >...
Read more >Fix: Windows 10 apps won't open [Full Guide]
1. Make sure that Windows Update service is running · 2. Run the troubleshooter · 3. Make sure that your apps are up...
Read more >How to fix Windows 10 apps that won't open - Asurion
Fix Windows 10 apps won't load on laptop ... Go to Start > Settings > Apps. Click on Apps & features, then select...
Read more >Windows 10 Apps Won't Open When You Click Them - MiniTool
Windows 10 Apps Won't Open · #1. Check the Windows Update Service · #2. Check the Application Identity Service · #3. Change System...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is within the vite plugin; a number of calls to
path.resolve
andpath.join
should simply convert backslashes to forward. Ideally done in one place which can keep paths predictable. I was able to get to a working state locally. @adamdbradley is fixing here: https://github.com/BuilderIO/qwik/pull/472Just to add to this, you currently need to use WSL to work with Qwik on Windows.
https://docs.microsoft.com/en-us/windows/wsl/install
TL;DR
wsl --install
As of recent updates, this will automatically add Ubuntu as your default WSL distro.