Closed RumNCodeDev closed 1 week ago
Hi @RumNCodeDev
in that file there is an import from undici
you can add this dependency in the package.json and install it, then you can start the server correctly.
we are importing crypto
as well but we don't need to install it because node:internal
manage it for us.
@gioboa how would I accomplish that as part of the pipeline as thats a generated file?
@gioboa how would I accomplish that as part of the pipeline as thats a generated file?
you can add a pnpm i undici
step in your pipeline.
The original issue is solved, so I'm closing it for now. Feel free to re-open it if it's still an issue for you. Thanks.
@gioboa , so if i do that, then i get another error for zod
missing, and if i add that, then im missing @auth/core
, and so on... so I feel like the adapter just isn't working properly if i have to keep just adding all of my deps again? Shouldnt this all be handled by the build step?
Here you can find the Docker solution for a Qwik Node Server.
In a specific step is adding all the dependencies
# Download dependencies as a separate step to take advantage of Docker's caching.
# Leverage a cache mount to /root/.yarn to speed up subsequent builds.
# Leverage bind mounts to package.json and yarn.lock to avoid having to copy them
# into this layer.
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=yarn.lock,target=yarn.lock \
--mount=type=cache,target=/root/.yarn \
yarn install --frozen-lockfile
I think we can improve this process, but it's definitively a feature request.
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I am attempting to build and deploy a QwikCity Web App to Azure using the
Node.js Server (Vanilla Node server)
adapter. However after running thebuild
command, and copy/paste thedist
andserver
folders into a new directory and attempting to runnode server/entry.node-server
I get the following errorReproduction
https://stackblitz.com/edit/vitejs-vite-q5swzr?file=index.html
Steps to reproduce
npm create qwik@latest
and selectEmpty App
.npm qwik add
to add theAdapter: Node.js Server (Vanilla Node server)
build
command from the package.jsondist
andserver
files into a new directory outside of the current project structure (like you would for a production deploy)node server/entry.node-server
in the new directorySystem Info
Additional Information
No response