error: SyntaxError DateTimePickerAndroid.js
See original GitHub issueerror: SyntaxError: D:\user\app\node_modules@react-native-community\datetimepicker\src\DateTimePickerAndroid.js: Unexpected token, expected “]” (97:42)
95 | } 96 |
97 | function dismiss(mode: AndroidNativeProps[‘mode’]) { | ^ 98 | // $FlowFixMe -
AbstractComponent
[1] is not an instance type. 99 | pickers[mode].dismiss(); 100 | }
version: “@react-native-community/datetimepicker”: “^6.1.2”, “react-native-modal-datetime-picker”: “^13.1.2”, “react-native”: “0.63.4”,
Android version: emulator nexus 10 tablet
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:7 (1 by maintainers)
Top Results From Across the Web
react-native-community/datetimepicker - npm
Given that the underlying component is a native view, not all of them are guaranteed to be supported, but testID and onLayout are...
Read more >React Native SyntaxError in node_modules/react-native/index.js
I got everything working on Web and iOS just fine but when I run yarn android and build to android I get a...
Read more >Expo SDK
I am getting error ./node_modules/@react-native-community/datetimepicker/src/DateTimePickerAndroid.js:23 Module not found: Can't resolve '.
Read more >react-native-community/datetimepicker - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >react-native No comments - AndroidBugFix
However I get the following error: ./node_modules/@react-native-community/datetimepicker/src/DateTimePickerAndroid.js:23 Module not found: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing this on iOS for some reason
A possible workaround is to install an earlier version, e.g. with
yarn add @react-native-community/datetimepicker@npm:3.5.2
.