Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to TypeError: Cannot read properties of undefined (reading '0') #351

Open
psyrenpark opened this issue Apr 16, 2024 · 1 comment

Comments

@psyrenpark
Copy link

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.

@kristerkari
Copy link
Owner

Thanks! Hopefully this helps people with that are seeing the same error 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants