electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

Using compiler-included build for Vue #228

Open mdings opened 7 years ago

mdings commented 7 years ago

Is there a way to have electron-compile use the compiler-included build for Vue? I'm using single page components like below but getting the error: vue.runtime.common.js:427 [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. Or is there a different way to precompile templates?

<template>
  <TitleBar></TitleBar>
</template>

<script>
  import TitleBar from './TitleBar.vue'
  export default {
    components: {
      TitleBar
    }
  }
</script>
javanets commented 7 years ago

I've got the same problem. Is there a way to use *.vue templates declaratively in electron-forge powered apps?