Coder Social home page Coder Social logo

Comments (5)

gioboa avatar gioboa commented on August 16, 2024

Hi @RumNCodeDev
in that file there is an import from undici
image
you can add this dependency in the package.json and install it, then you can start the server correctly.
image

we are importing crypto as well but we don't need to install it because node:internal manage it for us.

from qwik.

RumNCodeDev avatar RumNCodeDev commented on August 16, 2024

@gioboa how would I accomplish that as part of the pipeline as thats a generated file?

from qwik.

gioboa avatar gioboa commented on August 16, 2024

@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.

from qwik.

RumNCodeDev avatar RumNCodeDev commented on August 16, 2024

@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?

from qwik.

gioboa avatar gioboa commented on August 16, 2024

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.

from qwik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.