Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno 1.25.2 doesn't accept --compat flag any more. #15854

Closed
sergey-shandar opened this issue Sep 10, 2022 · 2 comments
Closed

Deno 1.25.2 doesn't accept --compat flag any more. #15854

sergey-shandar opened this issue Sep 10, 2022 · 2 comments
Labels
duplicate a duplicate of another issue

Comments

@sergey-shandar
Copy link

It looks like the compatibility mode is broken in 1.25.2 https://deno.land/[email protected]/node/compatibility_mode

> deno run --unstable --compat --allow-read --allow-env ./test.f.cjs
PS C:\github.com\functionalscript\functionalscript> deno run --unstable --compat --allow-read --allow-env ./test.f.cjs
error: Found argument '--compat' which wasn't expected, or isn't valid in this context

        If you tried to supply `--compat` as a value rather than a flag, use `-- --compat`

USAGE:
    deno run --unstable <SCRIPT_ARG>...

For more information try --help

Example: https://github.com/functionalscript/functionalscript/runs/8286749568?check_suite_focus=true

@sergey-shandar
Copy link
Author

I've found this PR #15678

My question is, how to use the npm: specifier?

@kitsonk
Copy link
Contributor

kitsonk commented Sep 10, 2022

Duplicate of #15678

For information on the npm: specifiers check here: https://deno.com/blog/v1.25#experimental-npm-support. The manual is going through a re-write and will be added there soon.

@kitsonk kitsonk closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants