-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Including node_modules during deno compile
causes panic
#28773
Comments
Side note: The Stack traceDeno v2.2.8+1086a75 on aarch64-apple-darwin. stack backtrace:
View trace: here |
I think this is because it's including the node_modules directory twice because it's already automatically included. Probably dropping |
@dsherret Ok got it. I added that because if you try to run it with the import of canvas it gives an error saying it can't find the Did your fix also fix that by chance? Or would that be a different issue? |
@justinmchase the install needs to be run with
Note that node native modules doesn't work in deno compile atm, so that's why the |
Right, I do include --allow-scripts and am able to run it locally just fine it's only when compiled that it appears to error out reporting that the .node file is missing. I guess I'm just trying to report that one of the issues with it not working at the moment appears to be that the file is not copied when compiled. Thanks for looking into this! |
I see it included as shown above. Can you try in canary? I excluded the
|
Reproduction
I think the minimal for this would be:
deno add npm:canvas
import nodeCanvas from "canvas";
in itdeno compile --allow-import --allow-net --allow-env --allow-ffi --include=node_modules --output=./handler main.ts
The text was updated successfully, but these errors were encountered: