Open Rhejie opened 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.
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'
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 containingdeclare module 'vue-froala-wysiwyg';
npm i --save-dev @types/vue-froala-wysiwyg is not working