quill-image-compress icon indicating copy to clipboard operation
quill-image-compress copied to clipboard

vite build error

Open kulame opened this issue 3 years ago • 2 comments

i try to build with vite it show error log

➜  faceadmin git:(mr/master/richeditor) ✗ pnpm build

> [email protected] build /srv/project/faceadmin
> tsc && vite build

src/page/article.tsx:20:27 - error TS7016: Could not find a declaration file for module 'quill-image-compress'. '/srv/project/faceadmin/node_modules/.pnpm/[email protected]/node_modules/quill-image-compress/dist/quill.imageCompressor.min.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/quill-image-compress` if it exists or add a new declaration (.d.ts) file containing `declare module 'quill-image-compress';`

20 import ImageCompress from "quill-image-compress";
                             ~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in src/page/article.tsx:20

version:

"quill-image-compress": "^1.2.26",

does quill-image-compress v1.2.26 support typescript?

kulame avatar Sep 14 '22 08:09 kulame

no it does not, see #30

chpio avatar Feb 08 '23 12:02 chpio

Try version [email protected] thanks @chpio

benwinding avatar Feb 08 '23 12:02 benwinding