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
It seems as if, for some reason, the function processStyles of prefix-style-class-id.js breaks when you import an SVG that has keyframes in its style block.
It seems as if the function tries to process rule.selectors, but fails because the svg with the keyframe's selectors is null.
here's the full trace
ERROR in ./src/resources/svg/line.svg
Module build failed: TypeError: Cannot read property 'map' of undefined
at <PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/filters/prefix-style-class-id.js:27:17
at Array.forEach (<anonymous>)
at processStyles (<PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/filters/prefix-style-class-id.js:19:9)
at <PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/filters/prefix-style-class-id.js:63:32
at Array.map (<anonymous>)
at Object.prefixStyleClassId (<PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/filters/prefix-style-class-id.js:61:17)
at Object.<anonymous> (<PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/index.js:25:20)
at Array.forEach (<anonymous>)
at Object.<anonymous> (<PROJECT_DIR>/node_modules/svg-react-loader/lib/sanitize/index.js:24:13)
at walker (<PROJECT_DIR>/node_modules/traverse/index.js:190:22)
at <PROJECT_DIR>/node_modules/traverse/index.js:208:29
at Array.forEach (<anonymous>)
at forEach (<PROJECT_DIR>/node_modules/traverse/index.js:298:31)
at walker (<PROJECT_DIR>/node_modules/traverse/index.js:203:13)
at <PROJECT_DIR>/node_modules/traverse/index.js:208:29
at Array.forEach (<anonymous>)
@ ./src/utils/grids.js 38:12-48
@ ./src/selectors/reports.js
@ ./src/sagas/bookmarks.js
@ ./src/sagas/index.js
@ ./src/utils/init.js
@ ./src/index.jsx
@ multi (webpack)-dev-server/client?http://localhost:6593 webpack/hot/dev-server babel-polyfill react-hot-loader/patch ./src/index.jsx
It seems as if, for some reason, the function
processStyles
ofprefix-style-class-id.js
breaks when you import an SVG that has keyframes in its style block.It seems as if the function tries to process
rule.selectors
, but fails because the svg with the keyframe'sselectors
is null.here's the full trace
Here's the content of the file
line.svg
.After commenting out the keyframes, no error was seen.
After introducing a keyframe to other svg files - the error came back
The text was updated successfully, but these errors were encountered: