Closed mikaello closed 4 years ago
Added pull-request to DefinitelyTyped now: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/40845
It is now merged into DefinitelyTyped
@mikaello how can i use it(@types/react-mic) with vite.config.ts?
[vite]: Rollup failed to resolve import "react-mic" from "src/Input.tsx".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
I'm sorry, I got no experience with Vite, and haven't used this module for years, so I can't help you out here.
It would be nice if this module could have associated TypeScript-types in DefinitelyTyped. Info on how to create such a type package is documented in their repo.
Here is what I have created so far, if someone wants to build off this: