bug: iOS 14.5 apps not loading global Ionic Styles in emulator
See original GitHub issueBug Report
Capacitor Version
Latest Dependencies:
@capacitor/cli: 3.0.2
@capacitor/core: 3.0.2
@capacitor/android: 3.0.2
@capacitor/ios: 3.0.2
Installed Dependencies:
@capacitor/android: not installed
@capacitor/cli: 3.0.2
@capacitor/ios: 3.0.2
@capacitor/core: 3.0.2
Platform(s)
iOS 14.5
Current Behavior
App is not loading Ionic Styles. Inspecting with Safari I can see the styles.css file is empty. EDIT: Inspecting from Safari in Simulator I get this error: Did not parse stylesheet at ‘capacitor://localhost/styles.css’ because non CSS MIME types are not allowed in strict mode.
Expected Behavior
App styling correctly
Code Reproduction
Clone the repo: https://github.com/mrussmup/stylesbugios145
run ionic capacitor build ios Run the app in a iOS 14.5 Simulator
Other Technical Details
npm --version
output:
6.14.10
node --version
output:
14.15.4
pod --version
output (iOS issues only):
1.10.1
Additional Context
Developing on a Mac Air M1. Opening XCode with Rosetta
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:35 (3 by maintainers)
Top Results From Across the Web
Did not parse stylesheet at 'ionic://localhost/styles.css ...
I'm working on a cross-platform mobile app and using ionic and angular ... bug: iOS 14.5 apps not loading global Ionic Styles in...
Read more >iOS 15.4 Ionic app not loading global Ionic Styles in emulator
1). What's the issue : As you see in the screenshot, xcode emulator build show no styles. Any help would be really appreciated....
Read more >iPhone 14 simulator not loading SKProducts - Apple Developer
I was testing my app using the Xcode 12 beta, in an iOS 14 simulator - when it tried to load SKProducts (all...
Read more >Debugging Tips For Your Ionic App - Ionic Blog
Debugging Ionic apps is not always easy, as apps usually behave ... when you open Safari because this is not working with Chrome...
Read more >Building a Native Mobile App with Next.js and Capacitor
If you are using Next.js to build a web app, you can easily benefit ... there's also a problem with the hydration of...
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
We have a team member experiencing the same problem as @Andorbal and @raminnoodle, He’s the only team member with an M1 Mac, and the only one experiencing this problem. Rosetta turned off. Works fine when running from Xcode, fails to load css when using cli.
@jcesarmobile can you re-open this issue until it is completely resolved?
I am having same issue. On Mac with M1 because some of the frameworks don’t support M1, I had to switch XCode to Rosetta. When I am doing that, project is missing all css when built.
It works fine in non Rosetta mode. I have cleared all project build folders etc. no joy