pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond

Home Page:https://pqina.nl/filepond

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module parse failed: Unexpected token

Jafo232 opened this issue · comments

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
| });

Nevermind.. This was a bug on my part.