Can't resolve ./platform-style on react-native-web
See original GitHub issueI’m getting a:
Module not found: Can't resolve './platform-style' in 'node_modules/react-native-calendars/src/agenda'
error when using the Calendar with react-native-web
.
Is this because there’s a missing platform-style.js
fallback for the .ios.js
and .android.js
files or am I doing something wrong?
Awesome project by the way!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
0 - Stack Overflow
I have just started learning React Native and wanted to add styleSheet it seems doesn't work, I'm trying to solve an issue but...
Read more >No platform.web.js in Utilities on react-native #1887 - GitHub
Sure - here's the (expo based) webpack config. The alias specifies that when webpacked, Utilities/Platform should resolve the react-native-web ...
Read more >Styling // React Native for Web - GitHub Pages
Style performance is improved when styles are defined outside of components using the StyleSheet API. This creates opaque references to the ...
Read more >The complete guide to React Native for Web - LogRocket Blog
This is a game-changer in the battle between mobile-first frameworks, as React Native is one of the most popular choices to build cross-platform...
Read more >react-native-webview - npm
React Native WebView component for iOS, Android, macOS, and Windows. Latest version: 11.26.0, last published: 17 days ago.
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 Free
Top 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
@overengineered @tautvilas I was using the Calendar, not the Agenda. I guess babel/webpack was traversing through that directory also.
I copied
platform-style.android.js
toplatform-style.js
and it worked fine for me (the Calendar).added android style as fallback style