vue-bulma / datepicker

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

Working Demo? #26

Closed mikeerickson closed 7 years ago

mikeerickson commented 7 years ago

I am looking for a working demo of this component. Trying to integrate into our app, however, webpack throws a fit. I have already had to install a slew of loaders which shouldn't be required when working with an npm module?


> vue-formly-test@1.0.0 build /Users/mikee/Documents/Projects/dev/vue/vue-formly-test
> webpack --progress --colors --hide-modules

Hash: 655d16f1ca86bbf1255a
Version: webpack 2.2.1
Time: 8461ms
    Asset    Size  Chunks                    Chunk Names
bundle.js  575 kB       0  [emitted]  [big]  main

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-bulma-datepicker/src/index.vue
Module not found: Error: Can't resolve './SingleInput' in '/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/vue-bulma-datepicker/src'
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-bulma-datepicker/src/index.vue 15:19-43
 @ ./~/vue-bulma-datepicker/src/index.vue
 @ ./src/app.js

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-bulma-datepicker/src/index.vue
Module not found: Error: Can't resolve './WrapperInput' in '/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/vue-bulma-datepicker/src'
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-bulma-datepicker/src/index.vue 19:20-45
 @ ./~/vue-bulma-datepicker/src/index.vue
 @ ./src/app.js

ERROR in ./~/flatpickr/dist/flatpickr.js
Module build failed: ReferenceError: Unknown plugin "transform-remove-strict-mode" specified in "/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/flatpickr/.babelrc" at 0, attempted to resolve relative to "/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/flatpickr"
    at /Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (native)
    at Function.normalisePlugins (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/index.js:216:65)
    at new File (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/file/index.js:139:24)
    at Pipeline.transform (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/mikee/Documents/Projects/dev/vue/vue-formly-test/node_modules/babel-loader/lib/index.js:155:20)
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-bulma-datepicker/src/index.vue 7:17-37
 @ ./~/vue-bulma-datepicker/src/index.vue
 @ ./src/app.js
luventa commented 7 years ago

Please check. I created this demo for you minutes ago. https://github.com/luventa/datepicker-demo