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

Better feedback on valid options #39

Closed
Dreamsorcerer opened this issue Jul 23, 2021 · 4 comments
Closed

Better feedback on valid options #39

Dreamsorcerer opened this issue Jul 23, 2021 · 4 comments

Comments

@Dreamsorcerer
Copy link

Dreamsorcerer commented Jul 23, 2021

When trying out the 'supports' feature, it seems that it if it fails to recognise a name, it gives no indication.

Expected behaviour would be an invalid configuration error, or atleast some kind of feedback that confirms what it is actually searching.

For example, I wanted to search for this intersection of features:
supports custom-elementsv1 and supports es6-module-dynamic-import and supports es6-class and supports replace-all and supports shadowdomv1

But, when pasting that in, nothing changes. If I remove half the string, then the coverage goes down, which is obviously impossible. It seems that one of the values is not recognised, but it's rather difficult to figure out which one.

@Dreamsorcerer
Copy link
Author

In this case it appears to be the replace-all, as it looks like browserlist does not have all features available.

@ritz078
Copy link
Collaborator

ritz078 commented Apr 6, 2022

I think the error should be handled by browserslist. right now browserslist isn't throwing a stable error for missing features.

@Dreamsorcerer
Copy link
Author

@ritz078 They seem to think the error message is clear: browserslist/browserslist#684 (comment)

@Dreamsorcerer
Copy link
Author

Looks like there has been a new PR relating to this. So, maybe now you can use those errors?
browserslist/browserslist#714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants