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

Mongoose Peer dependancy warning! #481

Closed
mdwekat opened this issue Mar 26, 2021 · 2 comments
Closed

Mongoose Peer dependancy warning! #481

mdwekat opened this issue Mar 26, 2021 · 2 comments

Comments

@mdwekat
Copy link

mdwekat commented Mar 26, 2021

Description
The package shows peer dependency warning when using mongoose@^5.12.2

npm WARN Could not resolve dependency:
npm WARN peer mongoose@"^4.0.0 || <= 5.10.0" from @casl/mongoose@4.0.1
npm WARN node_modules/@casl/mongoose
npm WARN   @casl/mongoose@"^4.0.1" from the root project

Suggested Solution
To pump the peer dependency to include mongoose@^5.12.2

@stalniy
Copy link
Owner

stalniy commented Mar 26, 2021

Thanks for the issue. Mongoose version is restricted by reason. Please check #436 for details

@stalniy stalniy closed this as completed Mar 26, 2021
@mdwekat
Copy link
Author

mdwekat commented Mar 26, 2021

I work around this by setting skipLibCheck to true in tsconfig.json

"compilerOptions": {
    "skipLibCheck": true
  }
}

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

No branches or pull requests

2 participants