Questions tagged [qwik]

98 questions
1
vote
1 answer

Using Qwik vs NextJS

I am new to React and I would like to also learn NextJS. I've also discovered Qwik and I would like to know whether Qwik is an alternative to NextJS. Can I use Qwick and NextJS in the same project? Does Qwik City perform the same features of…
Max
  • 53
  • 5
1
vote
0 answers

Does vite and rollup apply tree shaking on font icons?

I'm switching from Next.js to Qwik. One problem that I have for this migration, is material icons. In Next, I could easily use MUI icons. In Next, I use qwikify$ to use MUI icons, but they cause blanket rendering of components in the production. I…
Big boy
  • 1,113
  • 2
  • 8
  • 23
1
vote
0 answers

How to import Tailwind configuration values from Qwik components?

I'm trying to import some configurations from Tailwin in Qwik component. Inside tailwind.config.js I have this code: // tailwind.config.js file const defaultTheme = require('tailwindcss/defaultTheme') // custom configuration const { sm, md, lg, xl…
Mohammad Miras
  • 143
  • 1
  • 9
1
vote
1 answer

How can I assign and call window variable on Qwik builder.io?

I declared the window as global variable on the root file but when I call/assign on that variable, it gives me an error "window is not defined" I should be able to declare the global window variable, assign any value to it, and call it wherever on…
1
vote
1 answer

vite: Internal server error: optimizer should replace all usages of $()

I am developing an app in Qwik with firebase auth and I am getting the following error: Internal server error: Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead. …
armgjoka
  • 11
  • 4
1
vote
1 answer

Internal server error: Cannot read property 'useQwikCityEnv' of null

I'd followed the integration instructions to connect my builder.io account to my qwik application running on localhost:5143 and setup a test page to start playing with visual editor but I got this error on localhost: 10:47:31 PM [vite] Internal…
Mechanic
  • 5,015
  • 4
  • 15
  • 38
1
vote
0 answers

Wrangler Pages file not found when serving a Qwik website

Wrangler version: 8.19.1 OS: Ubuntu 22.04.1 LTS Bug In my Qwik pages project, when running npm run build && npm run serve, some files failed to be found: Full DevTools console output 127.0.0.1/:1 GET http://127.0.0.1:8788/build/q-8b482804.css…
1
vote
0 answers

How does Qwik build front-end projects with webpack?

Qwik is a React-like framework, I wonder how it works with webpack to build frontend projects? Today I tried to use it with webpack, but got the following error: Module not found: Error: Can't resolve '@qwik-city-plan' in…
liyunhua
  • 27
  • 6
1
vote
0 answers

How to exclude pages from SSG in QWIK?

I am trying to specify which pages to generate with SSG (Server Side Generation) and which pages should remain as SSR (Server Side Rendering). Is there an easy way to do this?
szilagyi.sandor
  • 204
  • 1
  • 6
1
vote
1 answer

Qwik not generating a manifest file for SSG site

I am trying to get started with Qwik and SSG. I have run the following commands in this order npm create qwik@latest selected the basic app npm run qwik add static-node npm run build.static npm run ssg After doing this I get the following error…
Michael Edwards
  • 6,308
  • 6
  • 44
  • 75
1
vote
1 answer

Any observed latency or delay in User Interaction for Qwik framework due to lazy loading of JS bundles?

The Qwik framework documentation mentions that there will be only one listener and all other listeners are serialized and attached to the DOM e.g: on:click etc. An elaborate caching algorithm is in place using service worker. In my understanding,…
Srikanth Sharma
  • 1,509
  • 2
  • 15
  • 27
0
votes
0 answers

How manage Theme value persistent in QwikJS

i want to handle like whit but, the code not run on browerser the first time useTask$(({ track }) => { track(() => themeAppearance.value); if (isBrowser) { const savedTheme = localStorage.getItem("themeApp"); console.log("from…
0
votes
0 answers

Nodemailer causing build failures in Vercel with Qwik app

I'm running into an issue deploying my Qwik app to Vercel. Whenever nodemailer is imported, it causes the build to fail with this error: [commonjs--resolver] Cannot bundle Node.js built-in "events" imported from…
0
votes
0 answers

CORS works on my local Qwik project in the development, yet it breaks in the production

I have an admin panel that is loaded on admin.example.local. It's in React. I also have a site that is loaded on example.local. It's in Qwik. I have a button in my admin panel that sends a fetch POST request to my site. In other words, a fetch…
Hasan
  • 19
  • 2
0
votes
1 answer

How can I create a non-serializable function in QWIK that avoids automatic serialization?

I need to prevent certain functions from being serialized in QWIK due to accessibility reasons. Serialization of these functions during download leads to unacceptable delays. How can I create these non-serializable functions effectively in QWIK…
David Pino
  • 23
  • 4