You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
One set of Quotation marks coming extra on html, when i am using in react, see the below code
{require('!svg-inline-loader!./../../../../images/icons/added_to_list.svg')} and output is
because of extra quotations react treating as text, when i remove the extra quotations it's working fine, please help me to sort it out,
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I think you need to use Params like below in web-pack, i don't know whether this module have quotation param or not
{
test: /.svg$/,
loader: 'svg-inline-loader?classPrefix'
}
I solved by using another module(svg-url-loader) like below in web-pack
{
test: /.svg$/,
loader: ['svg-url-loader?noquotes=true']
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One set of Quotation marks coming extra on html, when i am using in react, see the below code
{require('!svg-inline-loader!./../../../../images/icons/added_to_list.svg')} and output is
because of extra quotations react treating as text, when i remove the extra quotations it's working fine, please help me to sort it out,
Thanks in advance.
The text was updated successfully, but these errors were encountered: