Skip to content

dx(runtime-core): log the component object when warning about missing template/render function #10263

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

Merged
merged 1 commit into from
May 27, 2024

Conversation

skirtles-code
Copy link
Contributor

There's an existing warning that's shown when a component doesn't have a template or render function:

Component is missing template or render function

A common cause of this warning is that the object being used as a component is not actually a component. This typically happens when there's a mistake with the import/export from a library. The 'component' might actually be a plugin, or an object with a default property.

This PR adds the component object to the warning, saving a bit of time trying to debug the problem.

Copy link

github-actions bot commented Feb 2, 2024

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.2 kB 34.4 kB 30.9 kB
vue.global.prod.js 147 kB 53.6 kB 47.8 kB

Usages

Name Size Gzip Brotli
createApp 50.3 kB 19.7 kB 18 kB
createSSRApp 53.7 kB 21 kB 19.1 kB
defineCustomElement 52.6 kB 20.4 kB 18.6 kB
overall 64 kB 24.8 kB 22.5 kB

@haoqunjiang haoqunjiang added the 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. label Feb 29, 2024
@yyx990803 yyx990803 merged commit 7d4e575 into vuejs:main May 27, 2024
lynxlangya pushed a commit to lynxlangya/core that referenced this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants