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

Cannot find module '@jmondi/oauth2-server/dist/adapters/fastify' #27

Closed
reiterbene opened this issue Sep 22, 2021 · 4 comments
Closed

Comments

@reiterbene
Copy link
Contributor

reiterbene commented Sep 22, 2021

Typechecks work but when I try to start my fastify server it does not find the module.
After looking into the node_modules-Folder inside @jmondi/oauth2-server/dist/adapters I only find the typing files (*.d.ts) but no code. Also when searching inside the oauth2-server.cjs.development.js the function declaration can't be found.

Are there specific typescript options I have to set for the import to work?

Update: I also checked out the prisma-fastify-example and tried to start it up. Same error.

@jasonraimondi
Copy link
Owner

🧐 will look into this one shortly and will try to have a fix up asap

jasonraimondi added a commit that referenced this issue Sep 22, 2021
resolves the missing adapter import here: 
#27
jasonraimondi added a commit that referenced this issue Sep 22, 2021
resolves the issue of missing adapter from #27
#27
@jasonraimondi
Copy link
Owner

I've pushed an update for this one in v2.0.3-rc.0. I did this one under an RC because it was a bit riskier because I removed tsdx and replaced it directly with tsc, which was something I've been wanting to do for a while now.

Either pull the latest master if you are testing directly in the examples, or use > v2.0.3-rc.0 from npmjs and you should be good to go. It would be great if you were able to verify this worked for you as well.

Thanks for posting these issues!

@reiterbene
Copy link
Contributor Author

On the first glance it works for me now, thank you a lot for your fast response and fix!

@jasonraimondi
Copy link
Owner

Excellent! I put this fix as well as your PR #28 allowing numbers for OAuthUser.id into a tag of v2.0.3.

see https://github.com/jasonraimondi/ts-oauth2-server/releases/tag/v2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants