Answer the question
In order to leave comments, you need to log in
How to properly use Vue.js in a webpack build?
Hello. Can you please tell me how to properly use Vue.js in webpack assembly?
index.html
div id="vue-root">
<h2>
<a href="{{ url }}">Google</a>
</h2>
</div>
import Vue from 'vue';
new Vue({
el: '#vue-root',
data: {
url: 'http://google.com'
}
})
vue.runtime.esm.js:601 [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question