solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Bug?]: with-authjs template not working

Open floratmin opened this issue 10 months ago β€’ 2 comments

Duplicates

  • [x] I have searched the existing issues

Latest version

  • [x] I have tested the latest version

Current behavior 😯

When I create a new solid with pnpm create solid and select the with-authjs template I get the following warnings:

 WARN  Issues with peer dependencies found
.
└─┬ @solid-mediakit/auth 3.1.2
  β”œβ”€β”€ βœ• unmet peer @auth/core@^0.37.3: found 0.37.0
  └── βœ• unmet peer vinxi@^0.4.3: found 0.5.3

When I run pnpm run dev the browser throws Uncaught SyntaxError: The requested module '/_build/node_modules/.pnpm/[email protected]/node_modules/cookie/index.js?v=656a2d77' does not provide an export named 'parse' (at.

When I update @auth/core to version 0.37.3 the error changes to Uncaught ReferenceError: exports is not defined.

Sams error message was mentioned on next.

Expected behavior πŸ€”

The example should work.

Steps to reproduce πŸ•Ή

Steps:

  1. pnpm create solid
  2. choose with-authjs
  3. pnpm i
  4. pnpm run dev

Context πŸ”¦

No response

Your environment 🌎

Ubuntu 22.04
Node: 22.8.0
pnpm: 10.4.1

floratmin avatar Feb 18 '25 09:02 floratmin

I think it just needs to update the peerDepdencies at mediakit/auth ping @OrJDev

atilafassina avatar Feb 18 '25 10:02 atilafassina

this workaround worked for me (it's probably wrong) package.json

"overrides": {
    "cookie": "npm:cookie-es@^1.2.2"
  }

Rettend avatar Feb 19 '25 07:02 Rettend