Closed haikyuu closed 1 month ago
Thanks for sharing I've traced this down to https://github.com/openai/openai-node/pull/533 where an invalid usage of the "imports"
field was added.
The root cause is actually the JSPM CDN itself generating the incorrect exports field when the imports field is invalid in this way. I will post a CDN fix soon.
This error should be an Unable to resolve
error and that is correct, the error message not showing properly is the only generator bug.
In the mean time, you could also try loading from another CDN like esm.sh, as this is a CDN bug not a generator bug.
Just noting that I ran into this same bug -- I want to suggest @guybedford that the JSPM generator has a bug which is that it doesn't report "invalid imports field" or something but crashes without exposing the package name or the problem in a user-legible way.
Thanks @pvh I did see that - posted the fix to the error message in https://github.com/jspm/generator/pull/358.
OpenAI should now be working.
This is the error I get when trying to install openai.
I created a failing test here jspm/generator#356