Closed Nefcanto closed 2 years ago
Agreed this is critically important!
I am working to improve the error, there is one issue that makes dev mode to be disabled. The issue though is that you are using a use method useEndpoint() outside a component$(), you need to add component$() in every page.
@manucorporat, yeah I found it using trial and error. However, it's extremely useful if we can get a clear message like You forgot to use component$. That would save us hours.
The point is because Qwik is by design very similar to React, many React developers would fall into this pit. I'm sure about that.
We tested our first website using Qwik and our infrastructure (docker, Nginx reverse proxy, modular development, symbolic links, etc.) and we're so happy. The same site on Next got less than 80 in Google PageSpeed, and the same content using Qwik became 96.
We might completely migrate to Qwik in near future.
And I would gladly help in any form or shape. I love you guys.
Agreed! look at the new error message!
so happy to hear that! let us know when it's live we will love to add it here: https://qwik.builder.io/showcase/
Awesome message. Thank you so much.
Sure I will show them one by one as we deliver them to customers in the production environment.
Meanwhile, I'm reading the contribution document. I would love to help.
Which component is affected?
Qwik Runtime
Describe the bug
I want to fetch data on my page.
I use
useEndpoint
as specified in the docs.I expect it to work. But it shows me this error:
Reproduction
https://github.com/Nefcanto/UseEndpoint/blob/main/src/routes/blog/%5B...path%5D/index.jsx
Steps to reproduce
1- Clone the repo above 2-
npm install
3- Uncommentconst blogData = useEndpoint()
in thesrc/routes/blog/[...path]/index.jsx
file 4- Go to/blog
page.System Info
Additional Information
Make errors more descriptive.
A real-world project is a complex project. We're a website design agency and we design hundreds of websites for our customers each year.
We need to create some infrastructure using any platform or framework that we use.
We are very interested in Qwik, as we know Misko from Angular JS (he was the cause we left jQuery and started writing the web in a different way many years ago).
We know he's right about O(1). Thus we desire to leave Next.js and React and work with Qwik.
Please give us more data on errors so that we can troubleshoot the problem on our own side. Thank you so much.