SpellcraftAI / nextjs-openai

Hooks and components for working with OpenAI streams.
https://nextjs-openai.vercel.app
MIT License
239 stars 18 forks source link

Critial error: Cannot find module... #1

Closed Johnrobmiller closed 1 year ago

Johnrobmiller commented 1 year ago

After installing the library, I went to go and use it but found that I could not. I cannot import anything from the library because of this error:

Cannot find module 'nextjs-openai' or its corresponding type declarations.

I did pretty much everything I could think of to make this error go away, including the obvious things like restarting vsc, deleting and reinstalling node_modules, etc. I also double checked this libs package.json to try to find the error there, but saw nothing.

This is a showstopper, as the library cannot be used at all until this error is fixed.

ctjlewis commented 1 year ago

Hey @Johnrobmiller, thanks for opening this, apparently I'd had the types messed up. That should be fixed on latest, please tag me if it's still broken:

yarn add nextjs-openai