-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Unexpected recursion when component's filename matches subcomponent's alias #3472
Comments
This has a simple workaround: changing the alias of the subcomponent that is causing the problem. For example, instead of having:
You can have:
Where |
Closed because of duplication |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.7
Reproduction link
https://codesandbox.io/s/bold-violet-1t891
Steps to reproduce
(quasar not required to reproduce the issue, but it was the fastest way to get all the right dependencies in one place)
/privacy
route (/#/privacy
), blank page shows/fixed
route (/#/fixed
), Privacy Policy is displayedWhat is expected?
Privacy Policy displayed in both cases
What is actually happening?
For
/privacy
route, console will show "Unhandled error during execution of scheduler flush."Basically, there is a conflict between multiple components having the same alias. This happens in dev mode and in production mode. There is no actual conflict, but it seems that somehow the names are being globally registered without "scoping" them to the component that creates the alias.
This issue was also reported to Quasar at quasarframework/quasar#8672
After trying Quasar@v2 beta, which uses Vue 3, privacy policy page stopped opening.
The use case here is that there is a shared component that contains privacy policy text, which can be displayed in a popup dialog and also as a standalone page.
The text was updated successfully, but these errors were encountered: