how to cli run node modules without --compat
So
deno run --compat
has now been removed in favor of npm:
specifiers https://deno.com/blog/v1.26#--compat-mode-removed. I am sure this consolidates a lot of code, but I am unsure how I can gain back certain functionality. For instance, I could run a solidjs template out of the box from deno with compat like so:
deno run --compat --unstable --allow-env --allow-read --allow-run --allow-net node_modules/.bin/vite dev
Using npm specifiers, I dont seem to have the same capabilities.
deno run --compat --unstable --allow-env --allow-read --allow-run npm:vite
this most likely has to do with a subprocess with esbuild or something similar, but just in general, it seems like we lost some functionality here1 Reply
@andykais are you using latest release of Deno?
is there a repo I could take a look at?
I've been able to successfully run multiple Vite templates (that we added to https://github.com/bluwy/create-vite-extra) so it's not expect that it would fail on missing
fs
module