-
Notifications
You must be signed in to change notification settings - Fork 26
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
[BUG]: createNodeMiddleware is not exported (via esm.sh) #424
Comments
Line 64 in c8c685f
It is exported in And it is exported in It is exported in The function is defined in
|
I don't think this is something on our side. It looks to be a bug with esm.sh |
It might be esm.sh. I haven't been able to debug it very thoroughly, as I'm still a bit unfamiliar with the Octokit codebase. Another interesting thing I found was in these files: https://esm.sh/v125/[email protected]/X-ZC9Ab2N0b2tpdC9vYXV0aC1hcHBANC4yLjE/dist-types/app.d.ts https://esm.sh/v125/[email protected]/X-ZC9Ab2N0b2tpdC9vYXV0aC1hcHBANC4yLjE/dist-types/octokit.d.ts Note where it says types.d~.d.ts... I have no idea where that came from. Just esm.sh being wonky again? It seems so random. |
That is indeed a weird bug. However, it doesn't seem related to your issue though |
Can you test if using the ESM source build works, you can load it from here: https://unpkg.com/[email protected]/dist-src/index.js |
@wolfy1339 Unfortunately it did not work, but nice try :) When Deno tries to load the URL, we get this:
|
I wonder if this is just a deno problem. Can you try downloading the contents of the In the mean time, I have filed esm-dev/esm.sh#659 |
this is a bug of esm.sh about cjs lexer |
will fix ASAP |
@denizdogan Can you try again? This should be fixed in ESM.sh now |
@wolfy1339 That works! Thanks. But I will add there's still this one weird little URL which is pointed at by
Any ideas about that one? The code still runs, but some type information goes missing. |
i just file an issue, will fix soon esm-dev/esm.sh#660 |
Closing as the issue is fixed, and the subsequent problem with paths has an issue filed with esm.sh |
Fixes #2377 Ref octokit/oauth-app.js#424 Signed-off-by: wuhuizuo <[email protected]>
Fixes #2377 Ref octokit/oauth-app.js#424 Signed-off-by: wuhuizuo <[email protected]>
Fixes #2377 Ref octokit/oauth-app.js#424 Signed-off-by: wuhuizuo <[email protected]>
What happened?
Originally commented here: octokit/octokit.js#2450 (comment)
Importing
https://esm.sh/octokit
fails, at least in Deno 1.34.2, because it cannot see thecreateNodeMiddleware
export. I think this is due to something in #416 because overriding the dependency to use 4.2.1 works fine.Versions
Failing version:
https://esm.sh/[email protected]
Working version:
https://esm.sh/[email protected]?dts&target=deno&deps=@octokit/[email protected]
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: