oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.81k stars 2.64k forks source link

Module '"react-hook-form"' has no exported member 'SubmitHandler'. #9617

Open Inplex-sys opened 5 months ago

Inplex-sys commented 5 months ago

What version of Bun is running?

1.0.35+940448d6b

What platform is your computer?

Linux 6.1.0-13-amd64 x86_64 unknown

What steps can reproduce the bug?

$ bun create vite my-vue-app # React, TypeScript + SWC
$ bun i react-hook-from

Then try to import useForm

import { useForm } from "react-hook-form";

What is the expected behavior?

Should not return an error since it's the code that i copied from the react

What do you see instead?

Module '"react-hook-form"' has no exported member 'useForm'.

Additional information

Vite -> 5.2.6 React -> 18.2.69 react-dom -> 18.2.7

rsheppard-dev commented 3 months ago

I am getting exact same error