beynar / svelte-dropzone

A simple & ssr ready wrapper around dropzone.JS for svelte/sapper.
35 stars 10 forks source link

Your example from Readme.md is not working out of the box #6

Open thinkrapido opened 4 years ago

thinkrapido commented 4 years ago

the callback functions are not called and you use Tag which is wrong.

It should be to correspond with your code

thinkrapido commented 4 years ago

import Dropzone from "dropzone"; this line is missing in your npm published package! oh-buddy

benkissi commented 4 years ago

import Dropzone from "dropzone"; this line is missing in your npm published package! oh-buddy

Exactly. Error Dropzone is not defined

multics commented 4 years ago

After reading dropzone doc, I figured out that we need manually download dropzone.min.js and source it in your index.html. This works, but another warning occurs, from Dropzone itself: Dropzone already attached.