ioB
ioB•2y ago

Specifying config remotely or jsx on install

I'm struggling quite a lot here. I originally recommended using this command:
deno install -Afr --config https://deno.land/x/pyro/deno.jsonc -n pyro https://deno.land/x/pyro/cli.ts
deno install -Afr --config https://deno.land/x/pyro/deno.jsonc -n pyro https://deno.land/x/pyro/cli.ts
but it turns out deno doesn't support loading a remote config? That seems strange to me but sure. To work around this, I'm trying to do:
deno install -Afr --importmap https://deno.land/x/pyro/import_map.json --jsx=react-jsx -n pyro https://deno.land/x/pyro/cli.ts
deno install -Afr --importmap https://deno.land/x/pyro/import_map.json --jsx=react-jsx -n pyro https://deno.land/x/pyro/cli.ts
but it gives the following error:
error: Found argument '--jsx' which wasn't expected, or isn't valid in this context
error: Found argument '--jsx' which wasn't expected, or isn't valid in this context
I know that philosophically, Deno in the past claimed that you could always pass in command line flags instead of a config file. Any ideas on what to do here?
2 Replies
CodyC
CodyC•2y ago
I ran into similar issues myself yesterday: https://github.com/denoland/deno/issues/15350
GitHub
deno install with import_map.json appears to be broken · Issue #153...
I have made this third party module https://deno.land/x/wallpal. It is a cli script, so I attempted to install it with deno install -A --import-map=https://deno.land/x/wallpal@1.0.0/import_map.json...
CodyC
CodyC•2y ago
the short version is, deno install --import-map is broken. And if your application (or any of its libraries) uses an import map, you can no longer deno install it. 😢