@s24344

Как исправить «You are using the runtime-only build of Vue where the template compiler is not available»?

Как правильно использовать Vue.js в webpack сборке?

index.html

<div id="vue-root">
	<h2>
		<a href="{{ url }}">Google</a>
	</h2>
</div>

index.js

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.
  • Вопрос задан
  • 374 просмотра
Решения вопроса 1
0xD34F
@0xD34F Куратор тега Vue.js
Читаем документацию внимательнее.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы