pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond
https://pqina.nl/filepond
MIT License
46 stars 26 forks source link

Module parse failed: Unexpected token #22

Closed Jafo232 closed 4 years ago

Jafo232 commented 4 years ago

When using any version above 4.2.1, I get this when compiling with "npm run dev" or "npm run production"

ERROR in ./node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.esm.js Module parse failed: Unexpected token (144:4) You may need an appropriate loader to handle this file type. | const updateRect = element => | setAttributes(element, { | ...element.rect, | ...element.styles | });

Jafo232 commented 4 years ago

Nevermind.. This was a bug on my part.