Deno Compile Can't Find Node Module
Running deno compile on a ts file that includes another file that includes the aws sdk ssm client and I get the above error when I try to run the binary.
6 Replies
Maybe just noob stuff at work here. If I add
"nodeModulesDir": "auto"
to the deno.json
it seems to work.Maybe try to use --include flag , I think if the file is a dynamic import that's not statically analyzable it can't include it automatically
;
in the file
cause
any ideas ?
1st issue, the compiled executale can't find a file you can try to include it
deno compile --include node_modules/@aws-sdk myfile.ts
2nd issue deno is correct lodash doens't export eq on that version you can check with
- https://github.com/lodash/lodash/blob/4.17.21/lodash.js#L11252 it should be here : /
with deno v2.2.2/v2.2.3
I will try some stuff :cookie_deno:
GitHub
lodash/lodash.js at 4.17.21 · lodash/lodash
A modern JavaScript utility library delivering modularity, performance, & extras. - lodash/lodash
ah yes, this does work