-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: react, vite, production build yields <tagname> #24229
Comments
Thanks! I spoke with the team and the fix appears to be related to something in Stencil: ionic-team/stencil#2959. |
Is there by chance a workaround for this in the short term? I've read the linked issue and attempted to use the custom resolution
but without any success (Vite still emits |
There is no workaround at the moment. We are working closely with the Stencil team to resolve this. |
Sorry to chime in, but this is def not related to ionic-team/stencil#2959 :) |
Not sure, but we are looking at this with the Stencil team to better pinpoint where the issue may be. |
Hi everyone, We believe this is a bug in the React plugin for Vite. We have filed an issue with the Vite team: vitejs/vite#6104 I will follow up here when I have more to share. Thanks! |
Thanks for the issue. This has been resolved via #24515, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
When using Ionic React version 6, release candidate 2 with ViteJS (latest, version 2.6.14), Ionic application works as expected in development mode. Production (preview) mode, however, causes all
ion-...
elements to be rendered astagname
, and shadow DOM nodes are missing.This can be best seen by looking at DOM of a rendered application (see the reproduction repository below). In development mode you can see
ion-app
,ion-header
andion-content
:In production mode, the element structure is still there, but
ion-...
elements are replaced withtagname
:Expected Behavior
Production mode should still render
ion-...
+ shadow DOM elements, otherwise the application is unusable.Steps to Reproduce
To run the application in development mode (assuming
yarn
package manager) :To run the application in production preview mode:
yarn run build && yarn run serve
Code Reproduction URL
https://github.com/milang/ionic-simplevitejs
Ionic Info
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: