Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that

I am getting this error in JavaScript:

Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that ‘;’ is not a separator in viewport values. The list should be comma-separated.

How do I fix this?

I had this same error. Oddly, it’s quite simple to fix. Just change the semicolons for commas, like in:

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes">


The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .
Read More:   Google Chrome shows the status of XHR call as (blocked:other)

Similar Posts