Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coolRoger opened this issue Jul 29, 2019 · 1 comment
Open

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

coolRoger opened this issue Jul 29, 2019 · 1 comment

Comments

@coolRoger
Copy link

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?

@lchimaru
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants