Skip to content
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

Vue compat build: template: <App/> doesn't render app #51

Open
jeremiahvpratt opened this issue May 2, 2023 · 0 comments
Open

Vue compat build: template: <App/> doesn't render app #51

jeremiahvpratt opened this issue May 2, 2023 · 0 comments

Comments

@jeremiahvpratt
Copy link

In Vue 2, this is valid syntax to render the component "App":

new Vue({
  components: { App },
  template: '<App/>',
});

In the Vue 3 compat build, this appears to silently fail, while only the below syntax is supported:

new Vue({
  components: { App },
  render: (h) => h(App),
});

This silent failure sent me down a bit of a rabbit hole trying to get my app to render in the compat build. This definitely needs to be added to the migration guide as something to check for if it can be replicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant