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 ./platform-style on react-native-web

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
hugogrochaucommented, Jul 28, 2017

@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 to platform-style.js and it worked fine for me (the Calendar).

1reaction
tautvilascommented, Aug 2, 2017

added android style as fallback style

Read more comments on GitHub >

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

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