Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: with-authjs template not working #1819

Open
2 tasks done
floratmin opened this issue Feb 18, 2025 · 2 comments
Open
2 tasks done

[Bug?]: with-authjs template not working #1819

floratmin opened this issue Feb 18, 2025 · 2 comments
Labels
bug Something isn't working upstream Issue waiting on dependencies

Comments

@floratmin
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • 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 floratmin added bug Something isn't working needs triage labels Feb 18, 2025
@floratmin floratmin changed the title [Bug?]: 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 [Bug?]: with-authjs template not working Feb 18, 2025
@atilafassina
Copy link
Member

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

@atilafassina atilafassina added upstream Issue waiting on dependencies and removed needs triage labels Feb 18, 2025
@Rettend
Copy link

Rettend commented Feb 19, 2025

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Issue waiting on dependencies
Projects
None yet
Development

No branches or pull requests

3 participants