Can't resolve '../../Utilities/Platform' in 'path/to/project/node_modules/react-native/Libraries/Components/TextInput'
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://github.com/f4z3k4s/ant-design-rn-minimal-repro
Steps to reproduce
Try to run project on web with npm run web
which runs expo start --web
. Compliation fails with this error:
path/to/project/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js
Module not found: Can't resolve 'path/to/project/node_modules/react-native/Libraries/Components/TextInput'
What is expected?
It is expected that package supports expo’s web platform.
What is actually happening?
Error occurs when trying to use package on web.
Environment | Info |
---|---|
antd | 4.0.0 |
React | 16.9.0/0.61.5 |
System | MacOS Catalina (10.15.5) |
Browser | Version 83.0.4103.106 (Official Build) (64-bit) |
Edit: I do think it could very well be an issue with @react-native-community/viewpager
that you use as peer-dependency based on this issue.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:18 (1 by maintainers)
Top Results From Across the Web
0 - Stack Overflow
Expo - Failed to compile - Can't resolve '../Utilities/Platform' ; System: OS ; LTS (Focal ; Binaries: Node ; /usr/bin/yarn npm ;.1 react ......
Read more >r/reactnative icon - Reddit
Module not found: Can't resolve '../Utilities/Platform' please help... how do i get rid of this error. r/reactnative - 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
use dedicated emulator for your project instead of web shit😂😂😂
@gponsinet wen i install antd-mobile, is works, thanks