Ask questionsWhen Importing vue-next with rollup inner components do not mount



Reproduction link

Steps to reproduce

  • npm install
  • npm run dev
  • open localhost:5000
  • main app onMounted is executed
  • foo markup is missing and onMounted is not executed

What is expected?

Both main app and child components are rendered

What is actually happening?

The child component is not rendered, both by using a template string or a render function

I've prepared another branch where by using vue-next from cdn directly in the html everything works as expected:

Since this bug, I've migrated the whole repo to use the webpack-vue-next-starter template and with SFC everything works as expected.

As a side note, I've tried to import all the version of present in dist/vue/ thinking that I was lacking the live template compiler, but then I noticed that the issue is the same with render functions

Apologize for the messy repo, I've tried to reproduce on codesanbox but It keeps failing to load vue-next.

<!-- generated by vue-issues. DO NOT REMOVE -->


Answer questions yyx990803

Your root instance is still using in-DOM template (in index.html) which requires runtime compilation.


Related questions

No questions were found.
Github User Rank List