-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
SSR not showing any warning for unknown tag #6998
Comments
Doesn't the warning appear on the client anyway? |
No, at least not on the initial SSR-generated page load (with Nuxt). It only shows a warning on the client when you arrive at the page with But this is actually a valid point... I would also expect the client to emit that error on the initial load of such SSR-generated page. |
FYI It is expected behavior to not warn on the server, because it's possible that the user wants to render a real custom element instead of a Vue component. The warning can only be safely performed on the client where we can check if the element is registered as a real custom element. Previously it is not warning even on client-side hydration, which is fixed in df82aeb. |
Version
2.5.3
Reproduction link
https://jsfiddle.net/semenov/1oa635w8/
Steps to reproduce
Run jsfiddle and note the warning message that is printed to the console.
Then run the same code with SSR:
Like this:
DEBUG=* node test.js
What is expected?
The SSR rendering prints a warning similar to what client-side rendering emits:
What is actually happening?
SSR simply renders invalid HTML:
without any warnings.
This inconsistency makes it hard to refactor big Nuxt.js apps, as missing/unregistered components get silently ignored.
The text was updated successfully, but these errors were encountered: