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.

bug: iOS 14.5 apps not loading global Ionic Styles in emulator

See original GitHub issue

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

github_iconTop GitHub Comments

8reactions
jaufgangcommented, Mar 25, 2022

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?

8reactions
gbkwiattcommented, Aug 4, 2021

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

Read more comments on GitHub >

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

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