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

Prevent no-default-lib removing Deno global? #20420

Open
dsherret opened this issue Sep 8, 2023 · 3 comments
Open

Prevent no-default-lib removing Deno global? #20420

dsherret opened this issue Sep 8, 2023 · 3 comments
Labels
suggestion suggestions for new features (yet to be agreed) tsc related to the TypeScript tsc compiler

Comments

@dsherret
Copy link
Member

dsherret commented Sep 8, 2023

It is quite annoying to import something and it has a /// <reference no-default-lib="true" /> directive as it will remove the Deno global. Perhaps we should look into if there's a way we could make the deno global always included even when this is specified.

@dsherret dsherret added suggestion suggestions for new features (yet to be agreed) tsc related to the TypeScript tsc compiler labels Sep 8, 2023
@bartlomieju
Copy link
Member

This is such a common pitfall/footgun so I'm +1 on us doing that.

@mgenereu

This comment was marked as off-topic.

@isAdrisal
Copy link

+1 to this. I came across this building a small project with Fresh for the first time (having used Deno for a bunch of things at this point), and it was very unintuitive why adding --unstable had no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed) tsc related to the TypeScript tsc compiler
Projects
None yet
Development

No branches or pull requests

4 participants