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

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

Open
m-nathani opened this issue Jan 26, 2024 · 1 comment

Comments

@m-nathani
Copy link

m-nathani commented Jan 26, 2024

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:

├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
@ljharb
Copy link
Owner

ljharb commented Jan 26, 2024

Seems like an issue with your bundler or something - the actual file is complete, as you can see here: https://unpkg.com/browse/[email protected]/build/helpers/getComponentName.js

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

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