Module not found attr-accept
gponty opened this issue · 2 comments
gponty commented
Hi,
I use webpack and i have this error when i compile :
Module build failed: Module not found:
"./node_modules/svelte-file-dropzone/dist/utils/index.js" contains a reference to the file "./attr-accept".
This file can not be found, please check it for typos or update it if the file got moved.
Any idea ?
Thank you
PPP01 commented
Same problem here, with webpack too.
for webpack (not sure about vite, snowpack and other build tools) the relative specifiers need the .js extension (AFAIK)
--- a/svelte-file-dropzone/dist/utils/index.js
+++ b/svelte-file-dropzone/dist/utils/index.js
@@ -1,4 +1,4 @@
-import accepts from "./attr-accept";
+import accepts from "./attr-accept.js";
unlocomqx commented
Fix for webpack
