Back to Withastro

Cannot set both densities and widths

src/content/docs/en/reference/errors/incompatible-descriptor-options.mdx

latest498 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

IncompatibleDescriptorOptions: Only one of densities or widths can be specified. In most cases, you'll probably want to use only widths if you require specific widths.

What went wrong?

Only one of densities or widths can be specified. Those attributes are used to construct a srcset attribute, which cannot have both x and w descriptors.

See Also: