vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Unexpected token #3

Closed EmilMoe closed 7 years ago

EmilMoe commented 8 years ago

When I try to parse it with browserify I get this error:

[20:57:51] Starting 'browserify'...
{ Error: Parsing file /home/emil/node_modules/vue-bulma-datepicker/src/Datepicker.vue: Unexpected token (1:0)

I import it using

import Datepicker         from 'vue-bulma-datepicker';
sanbeaman commented 8 years ago

any word on this? I'm getting the same issue.

Browserify Failed!: Parsing file ......... /node_modules/vue-bulma-datepicker/src/Datepicker.vue: Unexpected token (1:0)

EmilMoe commented 8 years ago

@sanbeaman take a look here, I made it work:

https://laracasts.com/discuss/channels/vue/flatpickr

sanbeaman commented 8 years ago

so it looks like you abandoned the vue-bulma-datepicker and rolled your own with flatpickr directly..

EmilMoe commented 8 years ago

Yeah.. I was struggling making it work and was under presssure.

sanbeaman commented 8 years ago

thanks, I'll try and do the same!

fundon commented 8 years ago

@EmilMoe Could you post a PR?

CMLL commented 8 years ago

I ran into this same problem, and found out that transforming the file with vueify makes the error go away,

browserify -t vueify -e src/main.js -o web/app.js

but unfortunately for me, that also other stuff on my application, so if anyone finds what to make to avoid having to vueify the component would be great.