-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
Unexpected token in createHandler.ts #1374
Comments
Do you use the standard RN setup? Its babel plugin should be able to strip TS types and type imports. |
I have the same problem. How to fix it? |
@Pratama-lab, same question, do you use RN babel plugin? Could you share your babel.config.js here? |
OK, can module.exports = { |
Same problem. module.exports = { |
What version of RN and metro-react-native-babel-preset plugin do you use? Are you able to create reproducible example app and link to it? As a workaround, you can change react-native field in node_modules/react-native-gesture-handler/package.json to be the same as main field (lib/commonjs/index). Same goes for Swipeable/package.json and DrawerLayout. |
react: 16.9.0 => 16.9.0 "metro-react-native-babel-preset": "^0.58.0", |
"react": "16.9.0" |
"metro-react-native-babel-preset": "^0.56.0" |
I checked the |
I have the same issue, any clue about it ? by the way I removed the type in that line and it works, but it seems it's a problem with typescript syntax |
Hello i've solved this issue with updating
I hope it helps. |
This is related to the author's package versions. You should use the Babel version that is able to strip |
This fixed for me. Thank you. |
Description
Screenshots
Package versions
The text was updated successfully, but these errors were encountered: