Closed iammola closed 2 years ago
I went to where the mongoose.Schema
it used was defined, and it lead me to a folder with typescript caches in them /Users/~/Library/Caches/typescript
for multiple versions. I've deleted them now and the errors in the index.d.ts
are no more.
But I still cant import the plugin
Do you want to request a feature or report a bug? Bug
What is the current behaviour? This error is caused by the empty
index.ts
file you added in https://github.com/mongoosejs/mongoose-lean-getters/pull/14, when I delete the file and reload extensions, I can import the plugin without any errors.I import this way
And I get this TypeScript error
If the current behaviour is a bug, please provide the steps to reproduce.
With my TSConfig try and import the module
I also noticed in the
index.d.ts
, there's a TypeScript error in there as wellWhat is the expected behaviour? To import the module without any errors.
What are the versions of Node.js, mongoose-lean-getters, and Mongoose are you are using? Note that "latest" is not a version. Node.JS -
v17.8.0
mongoose-lean-getters -v0.3.2
Mongoose -v6.3.1