Skip to content

next/future/image - Style property values shouldn't contain a semicolon #38404

Answered by icyJoseph
Jahrhause asked this question in Help
Discussion options

You must be logged in to vote

Hi,

This warning is raised by React, and it is caused on this line

const svgBlurPlaceholder = `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ${widthInt} ${heightInt}'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='50'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cimage filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='${blurDataURL}'/%3E%3C/svg%3E");`

const imgStyle = Object.assign({}, style)
const svgBlurPlaceholder = `url("data…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Jahrhause
Comment options

@styfle
Comment options

Answer selected by Jahrhause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants