Closed NelsonFrancisco closed 2 years ago
Hmm older versions of Mongoose are not well tested anymore (there's simply too many combinations to keep up).
Couple things to verify/try:
@types/mongoose
installed (this is needed for older versions of Mongoose)5.10.X
Yeah.
Looks like version 5.9.X isn't compatible
Thanks
Good to know, sorry this wasnt more clear!
I have mongoose
5.9.26
with mongoose-tsgen6.0.10
but they seem incompatible. Typescript version is "4.6.3"I think I'm following the dependency guideline at https://github.com/francescov1/mongoose-tsgen#mongoose-version
It generates the output
mongoose.gen.ts
file just fineBut I get some typescript errors when I run
tsc
Here they are
Here's my tsconfig.ts json:
So, I'm I doing something wrong?