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.

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
Nishant-Karkicommented, Mar 9, 2021

use dedicated emulator for your project instead of web shit😂😂😂

2reactions
ZeroJiancommented, Nov 20, 2020

@gponsinet wen i install antd-mobile, is works, thanks

Read more comments on GitHub >

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

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