Skip to content

Package doesn't work without template compiler? #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Herteby opened this issue Jun 5, 2017 · 8 comments
Closed

Package doesn't work without template compiler? #10

Herteby opened this issue Jun 5, 2017 · 8 comments

Comments

@Herteby
Copy link

Herteby commented Jun 5, 2017

First I tried this:

import TreeView from "vue-json-tree-view"
Vue.use(TreeView)

Which gave the error "You are using the runtime-only build of Vue where the template compiler is not available..."
So I tried this instead:

import TreeView from "vue-json-tree-view/dist/vue-json-tree-view.min.js"
Vue.use(TreeView)

But I still get the same error.

@colwilson
Copy link

I get the same.

@arvidkahl
Copy link
Collaborator

This probably originates from the build chain. If someone is willing to work on a runtime-only build of the library, a pull request would be greatly appreciated.

@syuilo
Copy link

syuilo commented Mar 5, 2018

I still get the same error.

@rvyas
Copy link

rvyas commented Mar 6, 2018

Same here. Getting this warning:

[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.

@rvyas
Copy link

rvyas commented Mar 6, 2018

Same as #23

@morrislaptop
Copy link

I used import TreeView from 'vue-json-tree-view/src/TreeView' instead and then

components: {
    TreeView
  }

@bradstewart
Copy link

The issue stems from: 67abaa1#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

That commit removed vue-loader>10 and vue-template-compiler, which are required for runtime-only builds.

@github-actions
Copy link

This issue seems to be stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants