Giter VIP home page Giter VIP logo

Comments (7)

arjunindia avatar arjunindia commented on September 18, 2024 3

I found out what the problem is
I actually used pnpm instead of npm
and npm works

from auth-astro.

gadzan avatar gadzan commented on September 18, 2024 2

I found out what the problem is I actually used pnpm instead of npm and npm works

I solved this by pnpm add cookie,

Because of import cookie without installing deps:

import { serialize } from "cookie"

from auth-astro.

nowaythatworked avatar nowaythatworked commented on September 18, 2024 1

Thank you all for the help. The new version 1.0.6 was just published. It adds cookie as a dependency which should fix this issue.

from auth-astro.

TheOtterlord avatar TheOtterlord commented on September 18, 2024

Adding this to your astro.config.mjs should fix this. I'll look for a better solution, but if I can't find one, I'll add this to the docs.

  vite: {
    ssr: {
      noExternal: ['auth-astro']
    },
  }

from auth-astro.

arjunindia avatar arjunindia commented on September 18, 2024

Also the above solution doesnt fix the issue on pnpm

from auth-astro.

TheOtterlord avatar TheOtterlord commented on September 18, 2024

ooh ok, thanks. I'll try to replicate this and see if we can fix whatever pnpm is doing

from auth-astro.

TheOtterlord avatar TheOtterlord commented on September 18, 2024

OH

We only have the types for cookie we don't have it as a dependency. I guess we never ran into this before, because @auth/core has it as a dependency.

Thanks so much for looking into this, I've been pretty busy recently, but I'm also in the process of prepping v2 for launch. I'll try to get this added as a dependency ASAP.

from auth-astro.

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.