You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
continuing from this message https://discord.com/channels/842438759945601056/1070624203583262721/1208074251815358496 im trying to build my qwik app that uses bullmq to process a screenshot, and it hangs when i try to build it for production, i fix it by putting all the connection inside closure that way it doesnt start connection immediately this is my code when the build hangs:
It would be great if we could get a minimal repro of this. It doesn't need to be a working app, just the minimal source that causes the optimizer to hang.
It would be great if we could get a minimal repro of this. It doesn't need to be a working app, just the minimal source that causes the optimizer to hang.
I accidentally stumbled upon an issue. I was developing with Ubuntu v20, and everything was working fine. However, when I switched to Ubuntu 22.04, the server build process would not end execution. I couldn't figure out the problem, but it seems that the Qwik server build process executes the code at the build time to create necessary pages. During execution, it tries to resolve dependencies, but, weirdly, it can't resolve ioredis and bullmq. Although, if the build.server command exits at the end, there is no problem running the application.
But in the end, this happens only when the ssg flag is not disabled on the server adapter. If it is null, since the server build is not trying to create static pages, there is no hanging.
Which component is affected?
Qwik Runtime
Describe the bug
continuing from this message https://discord.com/channels/842438759945601056/1070624203583262721/1208074251815358496 im trying to build my qwik app that uses bullmq to process a screenshot, and it hangs when i try to build it for production, i fix it by putting all the connection inside closure that way it doesnt start connection immediately this is my code when the build hangs:
https://gist.github.com/koisose/f4ff6f4a92c0451dd934372972e675a2
and then this is how i change it so it doesnt hang
https://gist.github.com/koisose/57e908ad50a910a561addd95dd287340
it quite hacky but it works
Reproduction
https://github.com/koisose/qwik-error-build
Steps to reproduce
first you need to change https://github.com/koisose/qwik-error-build/blob/main/src/utils/bullmq/config.ts to your own redis instance config you can use upstash
then if you want to see the error run
pnpm run build
it will hang like this:System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: