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

Cannot read properties of undefined (reading 'children') #119

Open
murshidameenpv opened this issue Jun 1, 2024 · 3 comments
Open

Cannot read properties of undefined (reading 'children') #119

murshidameenpv opened this issue Jun 1, 2024 · 3 comments

Comments

@murshidameenpv
Copy link

I got This error after adding vite configuration:-

import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import svgr from "vite-plugin-svgr"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [svgr(),react(),], })
Screenshot 2024-06-01 142059

@pd4d10
Copy link
Owner

pd4d10 commented Jun 4, 2024

Could you please provide a minimal reproduction?

@ProkhoDim
Copy link

@murshidameenpv I've got this error when one of my icons was broken. You can find where the problem is by logging the source variable inside svg-parser.umd.js:95:23.
As You can see in the picture - the problem is that one of my files has wrong syntax.
image

@ryan-kim-dev
Copy link

Check the semicolon. I had a same error, and i resolved this issue by removing the semicolon at the svg closing tag.

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

4 participants