-
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: vue v6 with vue 3.1.0 overrides properties and event emitters #23539
Comments
I have the same issue. Some components don't throw errors when they are not imported (ion-button, ion-datetime), but do when they are. This unfortunately makes Ionic Vue 6 impossible to try out. |
This is caused by a breaking change in Vue 3.1.0 that we need to account for in Framework v6. I recommend staying on Vue 3.0.11 while we work on a fix. |
It doesn't seem like downgrading to Vue 3.0.11 helps. I still get the same errors. |
Try deleting your |
I removed package-lock.json and node_modules. This is my package.json:
And these are the errors I got:
|
If you run |
Hmm
|
Ah the new CLI packages might be forcing |
@liamdebeasi: Thanks, for me this indeed fixes the issue.
Stick to the old vue version by using this line should resolve the issue:
|
See ionic-team/ionic-framework#23539 Also revert back to kebab-case events
Can everyone try the following dev build and let me know if it resolves the issue? Vue
|
@liamdebeasi Yes, this resolved the But it seems to introduce a new bug. Might be unrelated but wanted to mention it. I had the following setup function as a test: setup() {
const value = ref("value1");
return { value };
} And the following code in my template: <ion-input :placeholder="value"></ion-input> This now renders a With both vue 3.1.4 & 3.1.5 Although |
Thanks! Can you give this updated dev build a shot?
|
@liamdebeasi Fixed it! |
Thanks for the issue. This has been resolved via #23738, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue testing the dev build in #23539 (comment), and let me know if you experience any other issues. |
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. |
Bug Report
Ionic version:
[ ] 4.x
[ ] 5.x
[ x] 6.x
Current behavior:
Using the ion-title component in the v6 vue beta leads to the following console error: "Cannot read property 'emit' of undefined".
The component itself gets rendered, and it seems to work - it just throws an error
EDIT: Same error happens to the ion-menu component.
Expected behavior:
No error should be thrown
Steps to reproduce:
Related code:
https://github.com/tho-masn/ionic-ion-title-bug
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: