Closed xiaojiudev closed 1 day ago
Hi @xiaojiudev, i tried running your code with all dependencies you have listed, except for MongoDB Server cause i think it's not necessary connecting to database.
Can you show your tsconfig.json and package.json file which includes mongoose and typescript related dependencies.
@sieusanh Here is my configuration in deno.json file (same as package.json), and I also defined typescript config in that file.
As a general rule, we don't debug errors that only show up in your IDE. If you're getting a build error when compiling your project we can look into it, but if it's just a VSCode warning the likelihood of us being able to repro it is negligible. For example, I don't get this warning on my machine:
i'm getting the same error
Prerequisites
Mongoose version
8.4.1
Node.js version
20.9.0
MongoDB server version
7.0.2
Typescript version (if applicable)
5.4.5
Description
My Deno project worked correctly until today I open my VSCode, it show a typescript error (my code still work correctly).
Steps to Reproduce
Expected Behavior
Typescript error should be hide