Hebilicious / authjs-nuxt

AuthJS edge-compatible authentication Nuxt module.
https://authjs-nuxt.pages.dev/
MIT License
253 stars 28 forks source link

set-cookie-parser doesn't provide an export named default #26

Closed selemondev closed 1 year ago

selemondev commented 1 year ago

Environment

{
  "name": "nuxt-auth-app",
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@nuxtjs/color-mode": "^3.3.0",
    "@nuxtjs/google-fonts": "^3.0.1",
    "@nuxtjs/tailwindcss": "^6.8.0",
    "@pinia/nuxt": "^0.4.11",
    "@types/bcryptjs": "^2.4.2",
    "@types/node": "20.4.2",
    "nuxt": "3.6.3",
    "nuxt-icon": "^0.4.2",
    "typescript": "^5.1.6",
    "vue-tsc": "1.8.5"
  },
  "dependencies": {
    "@auth/core": "^0.9.0",
    "@hebilicious/authjs-nuxt": "0.1.4",
    "@vuelidate/core": "^2.0.3",
    "@vuelidate/validators": "^2.0.3",
    "bcryptjs": "^2.4.3",
    "joi": "^17.9.2",
    "mongoose": "7.3.4",
    "pinia": "^2.1.4",
    "vue-sonner": "^0.3.3"
  }
}

Reproduction

https://codesandbox.io/p/sandbox/github/nuxt/starter/tree/v3

Describe the bug

Upon completing the installation and configuration process and subsequently initiating my development server, I encountered an error message when inspecting my console: utils.mjs:2 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/set-cookie-parser/lib/set-cookie.js?v=4e1359b9' does not provide an export named 'default' (at utils.mjs:2:8)

Additional context

No response

Logs

`utils.mjs:2 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/set-cookie-parser/lib/set-cookie.js?v=4e1359b9' does not provide an export named 'default' (at utils.mjs:2:8)`
Hebilicious commented 1 year ago

Please downgrade to 0.1.3 while I work on a fix

selemondev commented 1 year ago

OK

Hebilicious commented 1 year ago

@selemondev this should be fixed with 0.1.5

selemondev commented 1 year ago

Thank you.