2.1.10
https://github.com/SoullessWaffle/yaglman/tree/comment-repro
$ git clone https://github.com/SoullessWaffle/yaglman.git$ git checkout comment-repro$ npm install$ npm run watchDeveloper mode is checked in the top rightLoad unpacked extension and select the project's dist directoryvm.$el is a <div id="yaglman"></div> element and a <span>HELLO THERE</span> element appears on the page
vm.$el is an HTML comment (<!---->) and no <span>HELLO THERE</span> element appears on the page
No errors are logged.
Update your webpack config:
...
resolve: {
alias: {
vue$: 'vue/dist/vue.common.js'
...
If you're utilizing the vue.min.js and you have a template rendering error, the entire $el gets replaced with an HTML comment. (In my case it was because I was following an old Vue tutorial that didn't account for the change from v-on="click:theFunction" to v-on:click="theFunction".)
This seems weird enough that maybe the "Getting Started" guide should mention it—or maybe the comment could say "Vue template error" instead of just empty mysterious nothingness?
Most helpful comment
If you're utilizing the
vue.min.jsand you have a template rendering error, the entire$elgets replaced with an HTML comment. (In my case it was because I was following an old Vue tutorial that didn't account for the change fromv-on="click:theFunction"tov-on:click="theFunction".)This seems weird enough that maybe the "Getting Started" guide should mention it—or maybe the comment could say "Vue template error" instead of just empty mysterious nothingness?