You are using the runtime-only build of Vue with vue2
See original GitHub issuethanks for your datepicker, and I got a problem in vue2 vue.common.js:2611[Vue warn]: You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build. (found in component <Datepicker>).
I just use it in a *.vue
<template lang="pug">
Datepicker
</template>
<script>
import Datepicker from 'vuejs-datepicker'
export default {
components : {
Datepicker
}
}
</script>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:6 (1 by maintainers)
Top Results From Across the Web
[Vue warn]: You are using the runtime-only build of ... - GitHub
[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...
Read more >Solve the “You are using the runtime-only build of Vue” error
So I was just trying to make a simple demo project with Express and Vue.js. But I almost immediately ran into the following...
Read more >Fix "[Vue warn]: You are using the runtime-only build of Vue"
This post explains how to fix “[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available....
Read more >webpack - You are using the runtime-only build of Vue where ...
You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions ...
Read more >Vue 2.0 warn:You are using the runtime-only build of Vue ...
I use vue-cli ,vuex,and router 2 to build a SPA with Vue2. here is my code app.js import Vue from 'vue' import axios...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can also be solved by using:
import Vue from 'vue/dist/vue.js';
In stead of:
import Vue from 'vue';
This can be resolved by adding this to your webpack config:
See below: https://github.com/vuejs-templates/webpack/issues/215