Open mariusbolik opened 3 months ago
@mariusbolik the example code production you provided is loading Ionic components correctly on my end. Can you try again to see if maybe it was a caching or dev-server issue?
@sean-perkins Thank you for your Time! Could you please run npx astro build
and npx astro preview
in Stackblitz and see if the error occours?
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
I installed Ionic inside an Astro project:
Everything works well after running
npx run dev
. BUT after deployment (or in preview mode:npx run preview
), there are some errors in the browser console:Expected Behavior
The Ionic/Astro App should behave the same while dev server is running and on server. If you think this error is releated to Astro instead if Ionic, please let me know. In this case I'll copy this issue to the Astro repo.
Steps to Reproduce
npx astro dev
-> It worksnpx astro build
npx astro preview
-> It doesn't workCode Reproduction URL
https://stackblitz.com/edit/github-svnle1?file=src%2Flayouts%2FLayout.astro,src%2Fpages%2Findex.astro,astro.config.mjs&on=stackblitz
Ionic Info
Ionic:
Ionic CLI : 7.1.1
Utility:
cordova-res : 0.15.4 native-run (update available: 2.0.0) : 1.7.2
System:
NodeJS : v20.16.0 npm : 10.8.1 OS : macOS Unknown
Additional Information
No response