I'm using it to dynamicly change linearGradient stop { stop-color: } on hover.
And I'm using postcss-url with my own defined function to rewrite my image urls.
So, the problem is postcss-url fails when it tries to parse fill: url(#some-id"); because obliviously it's not a path.
events.js:160
throw er; // Unhandled 'error' event
^
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.join (path.js:468:7)
at prepareAsset (C:\WebDev\home\project.local\www\node_modules\postcss-url\src\lib\paths.js:92:31)
at replaceUrl (C:\WebDev\home\project.local\www\node_modules\postcss-url\src\index.js:64:19)
at decl.value.decl.value.replace (C:\WebDev\home\project.local\www\node_modules\postcss-url\src\index.js:94:28)
at RegExp.[Symbol.replace] (native)
at RegExp.[Symbol.replace] (native)
at String.replace (native)
at declProcessor (C:\WebDev\home\project.local\www\node_modules\postcss-url\src\index.js:93:10)
at styles.walkDecls (C:\WebDev\home\project.local\www\node_modules\postcss-url\src\index.js:115:20)
Also it's hard to debug because there's no info on parsed file and line with this "error".
Checked it on 6.0.2.
Hi! I have following code for my css:
AND inline svg on my page:
I'm using it to dynamicly change
linearGradient stop { stop-color: }
on hover. And I'm using postcss-url with my own defined function to rewrite my image urls.So, the problem is postcss-url fails when it tries to parse
fill: url(#some-id");
because obliviously it's not a path.Also it's hard to debug because there's no info on parsed file and line with this "error". Checked it on 6.0.2.