Doesn't work for me
vniko opened this issue · 5 comments
Hi, just tried to use this component and it crashes to blank page
Vue v2.1.10
Used it as:
import Datepicker from 'vue-bulma-datepicker';
export default {
name: "Clients-new",
components: {
VLayout: require('layouts/default/default.vue'),
Datepicker,
},
};
Uncaught SyntaxError: Unexpected token export
at Object. (app.js:1374)
at webpack_require (app.js:556)
at fn (app.js:87)
at eval (eval at (app.js:1068), :23:24)
at Object. (app.js:1068)
at webpack_require (app.js:556)
at fn (app.js:87)
at eval (eval at (app.js:1416), :7:3)
at Object. (app.js:1416)
at webpack_require (app.js:556)
(anonymous) @ app.js:1374
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ index.vue?52ce:11
(anonymous) @ app.js:1068
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ index.vue?e15a:7
(anonymous) @ app.js:1416
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ new.js?afa7:7
(anonymous) @ app.js:1104
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ new.vue?03a4:3
(anonymous) @ app.js:1398
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ routes.js?38fb:32
(anonymous) @ app.js:936
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ bootstrap.js?901c:84
(anonymous) @ app.js:744
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ index.vue?6dc0:18
(anonymous) @ app.js:1080
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ index.vue?0af8:3
(anonymous) @ app.js:1386
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ main.js?3479:8
(anonymous) @ app.js:1050
webpack_require @ app.js:556
fn @ app.js:87
(anonymous) @ app.js:587
webpack_require @ app.js:556
(anonymous) @ app.js:579
(anonymous) @ app.js:582
backend.js:1
webpack:///./~/vue-click-outside/index.js?5eb1
what's your webpack version?
1.13.2
you need to upgrade webpack to 2.x to support native js.
Thanks,
Would be great if you mention it somewheere in requirements
Yes. I will add peerDependencies
or documents for it.
Thank you very much!