question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

You are using the runtime-only build of Vue with vue2

See original GitHub issue

thanks 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:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
lambertbeekhuiscommented, Feb 8, 2018

Can also be solved by using:

import Vue from 'vue/dist/vue.js';

In stead of: import Vue from 'vue';

15reactions
charliekasselcommented, Jan 9, 2017

This can be resolved by adding this to your webpack config:

resolve: {
  alias: {
    vue: 'vue/dist/vue.js'
  }
}

See below: https://github.com/vuejs-templates/webpack/issues/215

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found