-
Notifications
You must be signed in to change notification settings - Fork 244
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: Errors during $setup are hidden and cause the template to be rendered with undefined properties #2319
Comments
Related? vuejs/core#7020 |
It looks like this can be 'fixed' by removing Lines 77 to 82 in bd21a8e
It looks like we need to swallow the error, so we can mount your component, then report on errors. Instead of I wonder if you would be interested in trying to fix this? You can start work by cloning the repo, adding your test case, run in watch mode, and modify the |
Thank you so much for your swift response. I'll try to find some time to look into it, but if anyone else is curious don't let that stop you. |
Don't everyone submit a PR at once! |
I can confirm that removing that block fixes the problem, but I don't know vue enough to understand vuejs/core#7020 so I'm not sure if it's a good idea? |
Describe the bug
When an error is thrown in the setup, it is silently ignored and the template is rendered with all variables set to undefined.
I cannot confidently exclude that this is a misconfiguration, so if there's anything I should check please let me know. Either way, this is very confusing and cost me quite some time, so if we can prevent this from happening that would be great.
To Reproduce
Expected behavior
The error should be presented to the developer
Actual output
Related information:
envinfo is doing weird things, here's my versions though
This is in a recently set up quasar 2.14.1 project.
Additional context
The text was updated successfully, but these errors were encountered: