Skip to content
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

Issue with webpack and the render method #34

Closed
jonnycraze opened this issue Sep 1, 2017 · 3 comments
Closed

Issue with webpack and the render method #34

jonnycraze opened this issue Sep 1, 2017 · 3 comments

Comments

@jonnycraze
Copy link

Hey there, I'm having an issue getting the vue component to pass in my webpack build, it is currently triggering an Unexpected token error.

Here is the component:
var VDataList = Vue.component('v-process-list', { props: { data: String }, render (h) { return ( <div>This is the VueJS Component, data received: {this.data}</div> ) } })

I think add this to the app:
.value('VDataList', VDataList);

And finally in my directive I invoke the component:
<vue-component name="VDataList" vprops="testData"></vue-component>

I'm suspicious I'm missing something in my webpack config, any help is greatly appreciated.

@nicolaspayot
Copy link
Member

Hi! Sorry for the (very very) late answer. Is the issue still occurring? If so, could you please provide a repo with your code? Thanks

@jonnycraze
Copy link
Author

We ended up getting it working via another means, I will post up the code this evening. We could not however get the code as written above working however.

@gregevari
Copy link

I made this work by using vue-loader and vue-template compiler.

Now my single page component HelloComponent.vue just works.

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

No branches or pull requests

3 participants