[Bug?]: with-authjs template not working
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:
- pnpm create solid
- choose with-authjs
- pnpm i
- pnpm run dev
Context π¦
No response
Your environment π
Ubuntu 22.04
Node: 22.8.0
pnpm: 10.4.1
I think it just needs to update the peerDepdencies at mediakit/auth
ping @OrJDev
this workaround worked for me (it's probably wrong)
package.json
"overrides": {
"cookie": "npm:cookie-es@^1.2.2"
}