ljharb / prop-types-tools

Custom React PropType validators
MIT License
671 stars 50 forks source link

SyntaxError Unexpected end of script at `t.getComponentName(airbnb-prop-types/src/helpers/getComponentName)` #79

Open m-nathani opened 8 months ago

m-nathani commented 8 months ago

We got this error from airbnb proptypes... haven't faced such issue before.

it throws an error on line

export default function getComponentName(Component) {

For more detail can check here for issue that we catch on our sentry instance: https://umai.sentry.io/share/issue/23296973e27047f28f20447e8519fcc4/

Versions:

 ├─┬ eslint-config-airbnb@19.0.4
 │ │ ├─┬ eslint-config-airbnb-base@15.0.0
 │ │ │ └── eslint@8.53.0
ljharb commented 8 months ago

Seems like an issue with your bundler or something - the actual file is complete, as you can see here: https://unpkg.com/browse/airbnb-prop-types@2.16.0/build/helpers/getComponentName.js

(also, those version numbers have nothing to do with airbnb-prop-types)