bombillazoB
Denoβ€’3y agoβ€’
1 reply
bombillazo

Deno compile target error

Hello, I am trying to compile a Deno api using deno --unstable ./path/to/api/index.ts --output ./path/to/output/api but am getting the following error:
Compile file:///Users/user/Projects/Code/app/functions/api/index.ts to ./functions/.build/api
Archive:  /var/folders/kp/brk5wgsn5mz73fxhj06c9tdw0000gn/T/.tmpnxgwN8/deno.zip
  inflating: deno                    
error: Writing ./functions/.build/api

Caused by:
    0: Reading symlink /Users/user/Projects/Code/app/node_modules/.deno/next@13.5.4/node_modules/@next/swc-linux-arm64-gnu
    1: No such file or directory (os error 2)


I also tried with --target aarch64-apple-darwin to no avail. I see that the that the @next/swc-linux-arm64-gnu package is missing while the deno supported platform are present (see image). Why is the @next dependency causing this issue and how can I tell Deno to ignore those unsupported platforms while compiling?
image.png
Was this page helpful?