Questions tagged [qwik]

98 questions
0
votes
0 answers

How can I use cors with Qwik?

I'm stuck at using cors in Qwik. In Next, I would use this code snippet: const cors = Cors({ methods: ['POST', 'GET', 'HEAD'], }) function runWithCors(req, res, callback) { return new Promise((resolve, reject) => { callback(req, res, result…
Ali Radan
  • 117
  • 5
0
votes
0 answers

Multiple scoped Styles in QuickJS

I tried to use two style sheets for my header component, one for the layout and the other is for the color scheme. I tried all means of concatenation but still giving me error. I can combine two css files into one but that is not in my plan…
resti
  • 7
  • 2
  • 6
0
votes
0 answers

Systematic way to change values in stores

Current if I want to update the value of a store, I would do const store = useStore({ a: 100, b: 100 }) store.a = 200 // change the value by using store.xxx store.b = 200 Is there a way I can pass a whole object without writing out the code…
Sam
  • 3
  • 2
0
votes
1 answer

How to make link active in QWIK?

How do I make a link active? I used the link component in a QWIK framework: Home How do I set the CSS class if the link is active (after activated route)? Are there any bind props like [class.active]="activeRoute"?
Aurica
  • 1
  • 1
0
votes
1 answer

Qwik JS error - Only primitive and object literals can be serialized

I have a signin page which is built upon Qwik & appwrite. There is a piece of code where I'm trying to get the current user's session details & If I get the session details then I'm redirecting the user to the "dashboard" page. Below is the code…
Suresh
  • 5,687
  • 12
  • 51
  • 80
0
votes
0 answers

Qwik Prod. Vercel Runtime Error: Uncaught (in promise) TypeError: error loading dynamically

I am having these problems in console when I try to submit a form to my MongoDB with import {formAction$} from "@modular-forms/qwik"; > XHRPOSThttps://www.nexasoft.dev/customer-form/q-data.json?qaction=id_vI9xZZ8C8Hw[HTTP/2 404 Not Found 194ms] >…
Maik col
  • 31
  • 4
0
votes
0 answers

sitemap generating and then emptying or regenerating without page entries

I am experiencing a very strange behavior. My sitemap is being built and then rebuilt without my loc entries. I am not receiving any errors though... I added this to my vite.config.ts: import sitemap from "vite-plugin-sitemap"; import {…
jhon dano
  • 660
  • 6
  • 23
0
votes
0 answers

Qwik Prod. Runtime Error: Uncaught (in promise) DOMException: The operation is insecure

In my static Qwik app (adapter), I use this function addCustomer export const addCustomer = server$(async (data) => {... to perform some task in my MongoDB when click in a Btn
Maik col
  • 31
  • 4
0
votes
0 answers

Custom CSS not loading on page refreshes in Qwik app

I'm working on a Qwik web application and have run into an issue where my custom CSS files are not being applied on page refreshes. In my router-head.tsx, I'm importing the CSS files like: This…
0
votes
0 answers

Fetch with Vite and Qwik using SSR not working behind corporate proxy

I have trouble working with Vite and Qwik behind a corporate proxy. I am following the documentation and have this simple code import { component$ } from '@builder.io/qwik'; import { routeLoader$ } from '@builder.io/qwik-city'; export const…
Burnian
  • 60
  • 5
0
votes
1 answer

Qwik js TypeError: props.redirect is not a function

In one of my component, I'm passing "redirect" & trying to redirect users in specific conditions. But at the time of doing it, I'm getting the following error - TypeError: props.redirect is not a function at this piece of code if…
Suresh
  • 5,687
  • 12
  • 51
  • 80
0
votes
0 answers

What options do I have to make an static import not being dependent on a physical file?

I'm using Qwik and I can't use dynamic import. Thus I have this line of code: import { OverridenLayout } from 'BlogOverride' This means that in my tsconfig.json file, I need to configure a barrel: "compilerOptions": { "paths": { …
0
votes
1 answer

how to prevent "routeLoader$" from executing 2 x when using "resolveValue"?

See this example causes my "routeLoader$" to be clled 2 times, which is an issue for obvious reasons? I couldnt understad how to prevent this. Please help: export const useNewsLoader = routeLoader$(async () => { return { data: 'example' …
jhon dano
  • 660
  • 6
  • 23
0
votes
2 answers

how to update dom when changes to useSignal value in qwik?

The "console.log" outputs the updated values to console, which suggest that the changes actually have taken place... However the "li" list items are not showing up in the browser!? Can you please help me to understand whats wrong? Here is the…
jhon dano
  • 660
  • 6
  • 23
0
votes
0 answers

Qwik, pass a value from child component to parent component

In the Qwik development framework, there is a requirement to transmit a value obtained from a custom selector (child component) to the parent component, with the purpose of storing said information in an object for later manipulation.
gmDaos
  • 1