airbnb / babel-plugin-inline-react-svg

A babel plugin that optimizes and inlines SVGs for your React Components.
MIT License
473 stars 92 forks source link

TypeError: Cannot read properties of undefined (reading 'uid') #113

Closed MuttakinHasib closed 2 years ago

MuttakinHasib commented 2 years ago

How can i fix this issue ?

Next.js v12.0.7

.babelrc

{
    "presets": [
        "next/babel"
    ],
    "plugins": [
        "inline-react-svg"
    ]
}

image

ljharb commented 2 years ago

Closing in favor of https://github.com/browserify/resolve/issues/264 - currently it seems like it's a bug in graceful-fs, combined with a new feature in resolve that triggers that bug, exacerbated by next.js bundling graceful-fs so that users are prevented from upgrading to get the fix.

KanadKJ commented 7 months ago

How can i fix this issue ?

Next.js v12.0.7

.babelrc

{
    "presets": [
        "next/babel"
    ],
    "plugins": [
        "inline-react-svg"
    ]
}

image

What is the solution for this error , Im aslo getting the same error for next v11.1.2, Kindly Help!!

KanadKJ commented 7 months ago

image for your reference.