froala / vue-froala-wysiwyg

Vue component for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
632 stars 86 forks source link

Issue in vue3 typescript setup #227

Open Rhejie opened 1 year ago

Rhejie commented 1 year ago

Vue version ^3.2.13 Node version 19.9.0

Error Message: Could not find a declaration file for module 'vue-froala-wysiwyg' /node_modules/vue-froala-wysiwyg/dist/vue-froala.js' implicitly has an 'any' type. Try npm i --save-dev @types/vue-froala-wysiwyg if it exists or add a new declaration (.d.ts) file containing declare module 'vue-froala-wysiwyg';

npm i --save-dev @types/vue-froala-wysiwyg is not working

ishowman commented 1 year ago

some example code is still using this in option api, but this is not work in setup api. It makes me confused.

jg-jgriffith commented 11 months ago

I solved it by adding an expected error.

// @ts-expect-error - there are no type defs for this plugin
import VueFroala from 'vue-froala-wysiwyg'