-
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: ion-select
has errors binding to object but only when using Vite starter
#27057
Comments
ion-select
has errors binding to object but only when using Vite starter
Minor update now that I have CLI v7
The It seems to be |
Does this only happen with |
Same basic behaviour with |
Thanks for the issue. This has been resolved via #27067, 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
v7.x
Current Behavior
I am using an object binding with an
ion-select
like such:Where
provider
isconst provider = ref<Provider>();
andProvider
is a simple "key-value" interface.With a
vite
based project, the project can be run just fine in the dev server (npm run dev
) but fails with the following error when doing a build (npm run build
):The app itself works perfectly fine in the browser when run from the dev server.
For a
vue-cli
project, object bindings in anion-select
build both for the dev server (npm run serve
) and the build (npm run build
), no errors with either.In either case (vite or vue-cli) I do get the type error in the editor.
Expected Behavior
This should build in a
vite
project just as it does in avue-cli
project (or just as it does in either project's dev server)Steps to Reproduce
npm i
npm run serve
- should build and worknpm run build
- should build and work if you so choose to serve it upThis with Vite
npm i
npm run dev
- should build and worknpm run build
- should result in error mentioned aboveCode Reproduction URL
https://github.com/kensodemann/vue-vite-obj-select
Ionic Info
Taken from the
vue-cli
project as I don't have the new CLI that understandsvue-vite
as a project type yet...Additional Information
No response
The text was updated successfully, but these errors were encountered: