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

warning: "@-ms-viewport" is not a known rule name with AntD #997

Closed
mikecann opened this issue Mar 18, 2021 · 2 comments
Closed

warning: "@-ms-viewport" is not a known rule name with AntD #997

mikecann opened this issue Mar 18, 2021 · 2 comments

Comments

@mikecann
Copy link

Im running esbuild 0.9.3 and everything works great (incredible work BTW) but I am getting a warning during build:

 > node_modules/antd/dist/antd.css:56:0: warning: "@-ms-viewport" is not a known rule name
    56 │ @-ms-viewport {
       ╵ ~~~~~~~~~~~~~

1 warning

I dont think im doing anything special just importing the CSS as the ant docs suggest.

Not sure if this is related to: #955 or not. Is AntD doing something special? If so is there a way of surpressing this warning?

@evanw
Copy link
Owner

evanw commented Mar 18, 2021

It looks like this is an ancient CSS annotation for mobile versions of Internet Explorer. I haven't added support for this because it sounds like it's an anti-pattern that isn't supposed to be used. However, I can add support for this to turn off the warning.

@mikecann
Copy link
Author

@evanw its up to you mate. AntD is a very popular library tho so I suspect a lot of people are going to run into this at some point.

Alternatively if you would prefer it, I could bring it up with Ant and see if they can remove it now?

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

Successfully merging a pull request may close this issue.

2 participants