autopilot-deno
autopilot-deno copied to clipboard
Error at importing Autopilot with M1 Mac
file:
//autopilot1.dn.js
import * as autopilot from "https://deno.land/x/[email protected]/mod.ts";
when I run this:
% deno --unstable run --allow-ffi --allow-env --allow-read autopilot1.dn.js
error: Uncaught (in promise) TypeError: Error parsing args at position 0: data did not match any variant of untagged enum ForeignSymbol
return Deno.dlopen(file.path, symbols);
^
at new DynamicLibrary (deno:ext/ffi/00_ffi.js:286:39)
at Object.dlopen (deno:ext/ffi/00_ffi.js:390:12)
at Module.prepare (https://deno.land/x/[email protected]/plug.ts:77:15)
at async https://deno.land/x/[email protected]/bindings/bindings.ts:8:14
- Device: Mac mini (M1, 2020)
- OS: MacOS Monterey 12.5
- Deno 12.4.3
- Autopilot 0.4.0
Note
According to README.md, the command should be:
% deno run --unstable --allow-ffi autopilot1.dn.js
Though, Deno.dlopen isn't defined when I put --unstable after run.
When I just put --unstable before run, that requests:
- env access to "DENO_DIR"
- env access to "HOME"
- read access to "~/Library/Caches/deno/plug/https/github.com/c7ce6d2dafee0de7e635a6112ad5903d788bace477d867b0a342e540acf23633.dylib"
- read access to "~/Library/Caches/deno/plug/https/github.com"
And when I arrow all of these, same error causes as with --allow-env --allow-read.