octokit / rest.js

GitHub REST API client for JavaScript

Home Page:https://octokit.github.io/rest.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CDN Bug

realpxd opened this issue ยท comments

Everything was working fine recently but today's morning all of a sudden , The project am working on stopped working !

Am receiving the following error in the console :-
Uncaught SyntaxError: The requested module '/-/@octokit/plugin-rest-endpoint-methods@v7.1.2-oh7as98dHhwO9RAmSS7b/dist=es2019,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js' does not provide an export named 'RestEndpointMethodTypes'

Can you guide me what should I do to fix this problem.

commented

I'm also experiencing this and in the process of debugging it.
A new patch version was released a few hours ago, so maybe try rolling back to the previous patch?

Edit: I've rolled back on my project and still experiencing the issue

If such condition occurs frequently then I will have to switch the product. This one is a major bug, preventing the app to work as intended !

๐ŸŽ‰ This issue has been resolved in version 19.0.10 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

Sorry folks, this one's one me. We are switching build systems and we have to explicitly mark every import of types, and re-exports.

I must have missed this one.

Sorry folks, this one's one me. We are switching build systems and we have to explicitly mark every import of types, and re-exports.

I must have missed this one.

No worries buddy   : )

we have to explicitly mark every import of types, and re-exports

is there a way we could verify that we do that correctly as part of our CI?

I don't know of a way to do so currently. Doing a dry-run of the build process can point some of them out because they won't exist in JS code, since they are only TS types