I'm fairly new to qwik, and trying to get into it. So I started the qwik CLI and followed the steps, chose Basic app with routing (the recommended one), chose to initialize a git repository and install dependencies. And after running npm start I get presented with the error that router outlet is not found. Now, considering it happened after I just created the starter app I figured it might have been corrupted so I reinstalled and restarted it, yet it's still happening and that just breaks the entire app. Did I do something wrong or did this version somehow got something messed up?
#Qwik starter app errors
91 messages · Page 1 of 1 (latest)
Anyone? Please?
Please?
I mean the starter should work, right? So maybe there's a bug that's been introduced recently.
What version of Qwik and Qwik City? Did you install with @latest? npm create qwik@latest I think is the command.
I would say let's see if we can get more info about your errors and then we can ping someone from the team on Discord.
You said you tried doing a second install, did you delete everything and start completely fresh? I would try that, and worst case you could try stepping back a version or two and see if that works.
If it's a bug it must've been introduced very recently because I started a qwik project a week or so ago without issue, so might need to step back 7-14 days and pick a version released in that time frame. Looks like we have 0.102 2 weeks ago and 0.101 3 weeks ago.
Yes
I did it just like that
npm create qwik@latest, chose basic app, installed dependencies, initialized git
Did npm start
And I get presented with that
And then all the scripts in the starter app break
Also yea, complete reinstall
Just did npm create all over and scrapped the previous
perhaps the dependency aren't installing with the create qwik. Maybe try deleting node_modules and then npm install manually.
Would a clean reinstall not fix it though? 🤔
I mean, it would just completely regenerate it
I'm not sure what you mean by clean reinstall. I'm suggest that perhaps the script isn't working right at the stage where installs the packages.
I've done lots of create qwik and haven't had issues in a very long time. Just trying to think of things that might help.
Maybe try disabling any browser extensions?
Don't have any
I mean I did npm create qwik again
So it's a complete reinstall of everyrhing
Also tried this but to no avail, still broken
Which node and npm versions are you using?
Both latest
Node v20, npm v9.6.5
I tried asking some people in the qwik team but they've been pretty unhelpful (which is a bit sad to see but unfortunately it's a bit of a common occurrence, still disappointing though in my opinion)
I understand, give me a minute to confirm my versions. Just did a fresh install today and it worked fine
Am currently on node v18.12.1. I believe the issue you are facing is due to using the current version which is unstable
You'll need to install the latest LTS version of node which is v18. 16
Ah
Wait let me see with the LTS version
If this is really the issue
Then
That would be sad
Let me know how it goes
Will do, just give me 10 years because my PC takes forever to uninstall apps
No worries. Will check in later
Alright I have installed 18, running npm start now
And now for the big test
Update: Router outlet still broken
And it isn't an extension issue because I don't have any + tried getting one and disabling
Windows
Cool, am also on Windows
All the stranger
The other culprit I can think of is your hard drive
What may be wrong with it
You mentioned it takes ages to install new packages, right
Not packages, apps
My PC just sucks honestly lol
The uninstaller takes forever
But I doubt that's the issue
It was working like a month and a half ago when I was just messing around with it but now I'm starting to create something with it and it just breaks
Do you use nvm to manage node.js?
Do I need to install it?
Nvm is not necessary but allows you to have multiple node versions and switch easily. It comes in handy sometimes.
I would delete your qwik app and create it again fresh, just to try. Or let us know if you figured it out!
Was this solved? I was successfully able to create starters with npm, yarn, and pnpm, but with both yarn and pnpm I had to manually install the modules after the CLI completed. BTW, my node.js version is 16.16.0 and npm v8.11.0.
Nope, this wasn't
It still errors
And I did create it from scratch
Way too many times
I'm not sure what else to try, other than trying the node/npm versions I'm currently using. Node v 16.16.0 & npm v 8.11.0. (And that's when NVM could come in handy - make it a lot easier to switch node/npm versions!) And make sure you npm i just in case it failed to do so automatically during initialization (although I did not need to when using NPM). Any way to reproduce this issue in a stackblitz or on another computer?
Tried, uploaded to stackblitz and it worked fine
Then retried on my PC and it won't work
I tried installing manually
It was all up to date it said
Tried different versions as well
We talked about it privately, I just wanted to write here so others who read it will see our response to the quoted message - the team is super busy, so DMs are not an effective way to get answers, it's better to open up a github issue with a reproduction or rely on the friendly community members here in discord or on the other social groups.
Two of our community values are friendliness and being patient - that means - if someone helps us publicly, let's thank them publicly and appreciate their time. If someone doesn't respond to us fast enough or can't help us, let's keep in mind they don't owe us anything, and if they help us it's out of pure goodwill. This is FREE open source and is true for any framework / library.
If we keep that in mind, we'll scale better as a community and stay friendly and supportive.
Now on to a possible solution:
Maybe it's a firewall issue or browser extension
I would install nvm and install a different node version and allow node to operate when the firewall pops up
No browser extensions as I said, firewall doesn't seem to interfere either
Have you tried what I suggested with nvm?
I tried changing versions, yea
I run on a windows machine and don't experience these issues, so it must be a specific configuration for this specific windows, either firewall blocking this port, specific browser or something else, it's hard to tell and to find.
Let us know if you find out what it was
It's the exact same configuration from a month ago when the starter worked
Now it just doesn't
OK, when you figure it out, we'd love to know what on your machine caused it not to work
So is there no way to identify it? Am I supposed to find it out on my own?
If you can't reproduce it on stackblitz / other machines, and tried everything suggested, I think we are out of ideas for now, so try it on a different computer, or a fresh install on a virtual machine, and if it works, see which programs / configuration might cause these 404s