-
Notifications
You must be signed in to change notification settings - Fork 25
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
error: Uncaught (in promise) Error: Unable to output during bundling. #122
Comments
This is frustrating because EDIT: I would highly suggest using a different package all together. None of my Deno projects work with |
|
@yacinehmito Any way I could help tackling this issue ? If you have any hint, any guess, that would be very valuable |
My point is that an important feature is being deprecated without a fully suitable replacement. Deno 2.0 is on the horizon, so I don't really agree with your stance. To my understanding, the I highly promoted Deno at my workplace and made use of it, and now am having second thoughts on using it. One good thing that Deno at least does well is that, its not too difficult to select a specific version of Deno to use... But, even then, I am feeling highly discouraged by the answer given here. On the note of the bug @Sorikairox - you could maybe also try spinning up your own instance of https://esm.sh/ and seeing if using that to bundle your packages with the I wish you best of luck. This reminds me of another issue that is associated to this specific module - denoland/deno#15015, it seems like there's some instability regarding binding to a wasm context. One can't help but wonder if this is a race condition that's being triggered. |
The responsible thing to do is not to deprecate when a fully suitable replacement exists, but as soon as the maintainers know that the feature will be removed. Otherwise, people build things on top of it without the knowledge that it will eventually stop being supported. As I already stated,
I have not found anything that suggests this. I have asked on the Discord whether this would be case, but I doubt they will remove |
@Sorikairox Neither @dsherret I suggest to rename this issue "Support node specifier" as this is most likely the cause of the error. |
Guess I need to find which dependency uses node and get rid of it then. I don't want to use them either. |
Same here. I'm trying to use the "natural" npm package in deno deploy but it's been a nightmare. The npm specifiers work fine locally, but they're not supported in deploy. So I'm trying to find a way to bundle locally and upload manually. But I get this error. And deno bundle doesn't support npm/node specifiers either. I guess I'm just out of luck? |
@whaaaley From my experience, it is a bit early to be fully relying on npm specifiers and package.json with Deno. The logic at the moment is confined to the CLI. None of the underlying dependencies like |
@yacinehmito Yeah I agree and I do understand. Nice to see some specifics as to why. For me at least it's unfortunate because Natural doesn't work with esm.sh for a handful of reasons, it seems. So I'm kind of stuck. I might have to host somewhere else until that feature is available in deploy or |
Happy to help about this on the Discord, if you want. Just ping me. |
Version:
deno 1.34.2 (release, aarch64-apple-darwin)
v8 11.5.150.2
typescript 5.0.4
deno_emit https://deno.land/x/[email protected]
What is happening?
The following error is thrown when trying to bundle my project (which worked with
deno bundle
until I updated a dependency that usesnode
import specifier, sodeno bundle
did not work anymore):Step to reproduce:
back
foldertestbundle.ts
which contains the following code:The text was updated successfully, but these errors were encountered: