react-native-svg-transformer
react-native-svg-transformer copied to clipboard
Solution to TypeError: Cannot read properties of undefined (reading '0')
Issue Description: Encountered an error: TypeError: Cannot read properties of undefined (reading '0')
Solution:
// Install the necessary plugins via yarn:
yarn add -D @svgr/plugin-svgo
yarn add -D @svgr/plugin-jsx
My Environment:
- Upgraded to Expo 50 along with other libraries
- Shifted to a monorepo environment
- Upon inspection, identified the issue within defaultSVGRConfig's plugins
I hope this solution helps others facing the same issue.
Thanks! Hopefully this helps people with that are seeing the same error 👍