Closed hartmannj closed 8 months ago
Still investigating but both the default and named export works on my end (no TS errors) in a fresh Vite project:
Thanks for the quick answer. Just realised Webstorm was actually auto importing as following
import { Observer } from 'mobx-vue-lite'
which throws this error. Using Observer as default import works.
I am not able to register the Observer globally because of below type error. I am using
mobx-vue-lite 0.4.1
andvue 3.4.15
.Following code
throws a type error:
Argument of type
is not assignable to parameter of type Plugin<[]>
Type
is not assignable to type FunctionPlugin<[]>
Any idea what the problem is?