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

[v4] | Android Bundling failed @babel/plugin-transform-optional-chaining #1440

Closed
SohelIslamImran opened this issue Jul 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SohelIslamImran
Copy link

Bug

When I start the project with yarn expo start, this throws the error

Android Bundling failed 2279ms
error: node_modules/@gorhom/bottom-sheet/src/hooks/useBottomSheetDynamicSnapPoints.ts: node_modules/@gorhom/bottom-sheet/src/hooks/useBottomSheetDynamicSnapPoints.ts: Cannot find module '@babel/plugin-proposal-optional-chaining'
Require stack:
- node_modules/@babel/core/lib/config/files/plugins.js
- node_modules/@babel/core/lib/config/files/index.js
- node_modules/@babel/core/lib/index.js
- node_modules/metro-react-native-babel-transformer/src/index.js
- node_modules/metro-transform-worker/src/index.js
- node_modules/metro/src/DeltaBundler/Worker.flow.js
- node_modules/metro/src/DeltaBundler/Worker.js
- node_modules/jest-worker/build/workers/processChild.js
- Did you mean "@babel/plugin-transform-optional-chaining"?

Make sure that all the Babel plugins and presets you are using
are defined as dependencies or devDependencies in your package.json
file. It's possible that the missing plugin is loaded by a preset
you are using that forgot to add the plugin to its dependencies: you
can workaround this problem by explicitly adding the missing package
to your top-level package.json.

Environment info

Library Version
@gorhom/bottom-sheet ^4.4.7
react-native 0.72.3
react-native-reanimated ~3.3.0
react-native-gesture-handler ~2.12.0

Steps To Reproduce

Describe what you expected to happen:

Reproducible sample code

@SohelIslamImran SohelIslamImran added the bug Something isn't working label Jul 13, 2023
@pertuzdev
Copy link

I'm having the same problem, how did you solve it?

@SohelIslamImran
Copy link
Author

delete node_modules and package-lock.json, yarn.lock folders and reinstall the packages @pertuzdev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants