stripe plugin doesnt seem to work
Hey, i've tried integrating the stripe plugin and i just keep getting this type error:
There is a issue on github about this but it's just saying that this happens because of a version mismatch.
auth.ts:
package.json
Solution:Jump to solution
The issue occured in the tsconfig file.
The error seems to only occur when
module
and moduleResolution
is set to NodeNext
This is the config that builds properly and doesnt throw the stripe plugin errors:
...3 Replies
What i've tried doing:
- Downgrading both packages, up to 1.2.9 with no success
- rm -rf node_modules
My setup is hono with node.js and pnpm
adding @ts-ignore to that seems to fix the issue, app proceeds to work and build normally, but of course this shouldnt be a solution
The error also leads to other parts of the auth not working at all. For example, inferring types doesnt work when @ts-ignore is present (or this error)
Solution
The issue occured in the tsconfig file.
The error seems to only occur when
module
and moduleResolution
is set to NodeNext
This is the config that builds properly and doesnt throw the stripe plugin errors:
tsconfig.json
Same config but error still persists