Open dhwanik-speed opened 1 year ago
I'm getting a different error
You need to install mongodb
package through NPM for it to work
I do have it installed
Running it anyway causes this
Are you sure you've followed this https://github.com/mongoosejs/mongoose-long?tab=readme-ov-file#typescript-usage ?
Make sure you enable both compilerOptions.allowSyntheticDefaultImports and compilerOptions.esModuleInterop in your tsconfig.json.
Getting error -
error TS4118: The type of this node cannot be serialized because its property '[hasInstance]' cannot be serialized.
when using TypeScript.Example model:
Version information: mongodb: ^5.2.0 mongoose: ^6.3.4 mongoose-long: ^0.6.0 typescript: ^4.7.2
Any help/workarounds are appreciated. Thanks!