rowanwins / vue-dropzone

A Vue.js component for Dropzone.js - a drag’n’drop file uploads utility with image previews
https://rowanwins.github.io/vue-dropzone/docs/dist
MIT License
2.02k stars 1.4k forks source link

I can't use this amazing Librairy #68

Closed pobz007 closed 7 years ago

pobz007 commented 7 years ago

Hello,

I try to use this component with Vuejs2 and Webpack 2 (vue-cli) but i can't use it. I have this error in my console :

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

[Vue warn]: Error in mounted hook: (found in )

Error: Invalid dropzone element. at new t (eval at (app.js:1105), :1:14941) at VueComponent.mounted (eval at (app.js:1105), :1:3410) at callHook (eval at (app.js:723), :2270:21) at Object.insert (eval at (app.js:723), :2949:7) at invokeInsertHook (eval at (app.js:723), :4955:28) at Vue$2.patch [as patch] (eval at (app.js:723), :5119:5) at Vue$2.Vue._update (eval at (app.js:723), :2030:19) at Vue$2.updateComponent (eval at (app.js:723), :2153:10) at Watcher.get (eval at (app.js:723), :2464:25) at new Watcher (eval at (app.js:723), :2447:12)

Please, can someone help me? Thanks a lot.

I found my problem, just my webpack in standalone

karlhorky commented 7 years ago

@pobz007 What was the problem? I'm running into this as well.

karlhorky commented 7 years ago

The solution that I found was to do this: https://github.com/rowanwins/vue-dropzone/issues/32#issuecomment-325123402