Warning Cannot find module 'better-auth/node' from ... #162
Unanswered
twiddlecoding
asked this question in
Q&A
Replies: 1 comment 1 reply
-
are you using import or require? import is not working |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the auth package better-auth in my project. I'm importing several things from subpaths like 'better-auth/node', 'better-auth/adapters/prisma', and 'better-auth/client'.
I build the app with tsc and then package it with pkg. But when doing so, I get all these errors.
It seems these subpath imports isn't included somehow. How can I fix this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions