Skip to content

./node_modules/@react-native-community/datetimepicker/src/androidUtils.js:6 Module not found: Can't resolve './picker' #623

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

Closed
Don-peter-joseph opened this issue Jun 18, 2022 · 9 comments · Fixed by #625
Labels

Comments

@Don-peter-joseph
Copy link

Bug report

Summary

Reproducible sample code

Steps to reproduce

Describe what you expected to happen:

Environment info

npx react-native info output:

# paste it here

datetimepicker version: x.x.x

iOS / Android version: x.x

@vonovak
Copy link
Member

vonovak commented Jun 27, 2022

🎉 This issue has been resolved in version 6.1.4 🎉

If this package helps you, consider sponsoring us! 🚀

@tamis-laan
Copy link

tamis-laan commented Jun 29, 2022

tada This issue has been resolved in version 6.1.4 tada

If this package helps you, consider sponsoring us! rocket

@vonovak

Expo still links to version 6.1.2 causing build problems:

> expo install @react-native-community/datetimepicker
Installing 1 SDK 45.0.0 compatible native module using Yarn.

@vonovak
Copy link
Member

vonovak commented Jun 29, 2022

tada This issue has been resolved in version 6.1.4 tada

If this package helps you, consider sponsoring us! rocket

@vonovak

Expo still links to version 6.1.2 causing build problems:


> expo install @react-native-community/datetimepicker

Installing 1 SDK 45.0.0 compatible native module using Yarn.

Hello, in this case you can force your package manager to update to 6.1.4 and it should work just fine.

Thank you

@tamis-laan
Copy link

@vonovak

I did yarn add @react-native-community/datetimepicker which takes me to 6.2.1 but I'm not sure if this will bring problems in the future. For example running expo install will downgrade datetimepicker?

@vonovak
Copy link
Member

vonovak commented Jun 29, 2022

@vonovak

I did yarn add @react-native-community/datetimepicker which takes me to 6.2.1 but I'm not sure if this will bring problems in the future. For example running expo install will downgrade datetimepicker?

Hello,
the latest version is 6.2.0 so I don't think it's possible to use 6.2.1 😄.
That being said, 6.2.0 already has features that you cannot use in your setup, so please use 6.1.4 as I indicated above.

For example running expo install will downgrade datetimepicker?

I don't think it will downgrade but you can run it and see it or yourself 🙂. I hope I'm correct here and it works, if not I suggest you take the changes from #625 and apply them using patch-package.

Hope this helps, thank you 🙂

@tamis-laan
Copy link

I'm sorry, when I run expo update or expo install @react-native-community/datetimepicker expo installs version 6.1.2. I can install version 6.1.4 using yarn.

@vonovak
Copy link
Member

vonovak commented Jun 29, 2022

yes, that is expected. But if 6.1.4 works then the problem is solved, no? 🤔 🙂

@vonovak vonovak reopened this Jun 29, 2022
@vonovak vonovak closed this as completed Jun 29, 2022
@tamis-laan
Copy link

yes, that is expected. But if 6.1.4 works then the problem is solved, no? thinking slightly_smiling_face

Well I will get messages from expo saying 6.1.4 is not supported. And when updating/installing, expo will move the version back to 6.1.2 and everything breaks.

@vonovak
Copy link
Member

vonovak commented Jun 29, 2022

in that case, please refer to this part of my previous comment:

... I hope I'm correct here and it works, if not I suggest you take the changes from #625 and apply them using patch-package.

Thank you 🙂

@vonovak vonovak reopened this Jun 29, 2022
@vonovak vonovak closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants