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.

runtime-only build error (while using with Nativescript-Vue

See original GitHub issue

I was trying to use Nativescript-Vue with vue class style components

Here is my file - pretty standard and simple

<template>
  <StackLayout xmlns="http://schemas.nativescript.org/tns.xsd">
    <Label :text="message"></Label>
    <TextView v-model="message"></TextView>
  </StackLayout>

</template>
<script>
  import Vue from 'vue'
  import Component from 'vue-class-component'
  @Component
  export default class Home extends Vue {
    message = "HOME IS HERE"
  }
</script>

I keep encountering this error “You are using the runtime-only build of Vue where the template compiler is not available.”

I am confused, because in my entire project I have only used sfc. So there are no string templates anywhere.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
michaeljotacommented, Sep 9, 2018

For those who end up here playing around with Vuido, you need to set an alias for Vue to Vuido.

If using webpack directly:


    resolve: {
      extensions: [ '.js', '.vue', '.json' ],
      alias: {
        vue: 'vuido' // This line
      }
    },

If you want to use @vue/cli I’m still working on that, but you need a vue.config.js file.

0reactions
ktsncommented, May 3, 2018

Oh! happy to hear that 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

NativeScript Vue - Android Build error under Windows 10 (ns ...
while building a simple NativeScript Application I got an Error during running this command: ns build android --release --key-store-path ...
Read more >
[Solved]-Error while using React-table.js in Vue.js-Vue.js
So I recreated the project and it worked fine for me, below are set of dependencies I used. I think your case it...
Read more >
Simple Vue.js Form Validation with Vuelidate
Form validation with Vue.js can be surprisingly tricky. In this article, we see how Vuelidate can be used to make things easier.
Read more >
Installation - NativeScript-Vue
To use NativeScript-Vue, you need to set up your system to compile your apps. Prerequisites. Node.js; NativeScript CLI. Node.js. Download and install the ......
Read more >
Consume Remote API Data Via HTTP In A Vue.js Web ...
When building a modern web application, chances are that you'll need to consume data from some remote resource, whether it be one that ......
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