Closed codinkai closed 8 months ago
The issue can be fixed by changing the exports parameter to the following code snippet in the package.json
and adding the empty files index.d.ts
and index.js
.
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
},
"./Dropzone.svelte": {
"types": "./dist/components/Dropzone.svelte.d.ts",
"svelte": "./dist/components/Dropzone.svelte"
}
},
This fork works. https://github.com/northh-kai/svelte-file-dropzone/tree/master
I believe this bug can be fixed by my PR (https://github.com/thecodejack/svelte-file-dropzone/pull/144). I am not sure when they can merge this to main.
Alternatively, you can downgrade vitest to 0.33.0. the version above 0.33.1 does not work with this component.
Hello, everyone, we forked to our organisation and fixed this bug. published NPM package.
Also, I upgraded svelte3 to svelte4 in package.
You can use our package if you want.
https://www.npmjs.com/package/@undp-data/svelte-file-dropzone
Hi @JinIgarashi
Would you be able to create a new PR? I see you closed older one.
@thecodejack no, not easy to create a PR to this because there are several different fixes mixed in main branch of our forked repo. But the changes are not a lot, you can fix by following my repo's change.
https://github.com/UNDP-Data/svelte-file-dropzone/pull/1
major changes on PR are
index.ts
under lib folder.
in exports in package.jsonIf you are happy with these above changes except the last one (package name), I can create a PR to this repo immediately (I can just change package name to original one only), otherwise I have no time to extract only changes on this issue to make a PR. Thanks.
Please create the PR from your repo. I can look into that and merge further.
If possible avoid last 3 steps.
@thecodejack created new PR #150. you can merge it if you want
This ticket was closed, but the fix doesn't appear to be available in the published 2.0.2 package.
Hi, when running vitest, I get the following error after installing "svelte-file-dropzone":
Steps to recreate:
Do you know what might cause the problem?