ts-mongoose icon indicating copy to clipboard operation
ts-mongoose copied to clipboard

import { Type } from "ts-mongoose" throw errors in VSCode IDE

Open coolRoger opened this issue 4 years ago • 1 comments

When I am trying to set Type for my Schema field, I got following errors in my IDE: image Property 'optionalString' does not exist on type image Expected 0 arguments, but got 1. But no errors is thrown with tsc command, and also the code works fine when the project is built. So, I am asking why the { Type } would cause the ide throws errors? Would be the node_modules folder's Typescript version doesn't match the Ide Typescript Version?

coolRoger avatar Jul 29 '19 15:07 coolRoger

Would be the node_modules folder's Typescript version doesn't match the Ide Typescript Version?

That would be my first guess. Have you fixed it somehow on your side?

lchimaru avatar Oct 15 '19 19:10 lchimaru