missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.59k stars 828 forks source link

how to handle this error in typescript? #790

Open oinochoe opened 1 year ago

oinochoe commented 1 year ago
node_modules/emoji-mart/dist/index.d.ts:1:46 - error TS2307: Cannot find module 'components/HTMLElement' or its corresponding type declarations.
1 import { HTMLElement as _HTMLElement1 } from "components/HTMLElement";

I want to build react vite app. but I encounter this error. please how to handle this error.

oinochoe commented 1 year ago

I have solved this problem via downgrading this module to 5.0.0 version and installing @types/emoji-mart