question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: SyntaxError DateTimePickerAndroid.js

See original GitHub issue

error: 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:closed
  • Created a year ago
  • Reactions:9
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ahardy42commented, Apr 27, 2022

I’m seeing this on iOS for some reason

2reactions
dspinelliscommented, May 8, 2022

A possible workaround is to install an earlier version, e.g. with yarn add @react-native-community/datetimepicker@npm:3.5.2.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found