-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Failed to run - ipfs-core & helia due to {current throwing dependency} #562
Comments
I'm gonna start to work on helia (the "successor" to IPFS-core) while this one is stewing. |
So... turns out helia also relies on default-gateway. So that's neat. #561 is also required for helia to work. |
Manual edit of x=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,s)=>(typeof require<"u"?require:r)[s]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}); to x=(x=>{return import(x)}); Fixed the issue, though I'm not sure if this is really feasible to fix here or if it should be fixed in the module... I'll look into it. Opening new issue for the next roadblock I found. |
does #561 fix this? |
Sorry for spam but it turns out that it is just a normal dynamic require on the side of default-gateway, so this is actually something in the transpiler pipeline. Had I done a bit more searching I would have found #368 which is the same error. It looks like this is a problem in esbuild itself as it has bug reports of this message. It may need to be a regex rewrite where if a module is flagged as having a dynamic require it gets the require statement overwritten with a dynamic import. However this would also effect code maps so that should be taken into account. #561 does not fix this but is required to get far enough for this error to occur. (and once this error is fixed there is at least one more after it.) |
i see, i will look into it. thanks ! |
comfirms your PR #561 fixed xml2js and netmask deps, i am looking into default-gateway problem |
damn, the deps of |
trying to fix |
I'll take a look at the work you did and try to continue it. |
Current error is with undici that seems to be some unknown class it's trying to extend. Doing research now. |
Is there a option for non-minified files? Or does anyone know a way to view code with a source map? If no one has any good ideas I'm gonna have to build my own. |
use |
SNIP: Moved to a new bug for tracking, once that is done will continue working here. |
IPFS
This is the one I eventually want to use... Eventually.
Current throwing dep: undici
This is the one I eventually want to use... Eventually.
Error message
After running
deno run
I got this:Additional info
The text was updated successfully, but these errors were encountered: