Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in vue3 typescript setup #227

Open
Rhejie opened this issue Sep 14, 2023 · 2 comments
Open

Issue in vue3 typescript setup #227

Rhejie opened this issue Sep 14, 2023 · 2 comments

Comments

@Rhejie
Copy link

Rhejie commented Sep 14, 2023

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
Copy link

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

@jg-jgriffith
Copy link

jg-jgriffith commented Oct 5, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants