DefinitelyTyped / DefinitelyTyped/DefinitelyTyped
[mongoose-paginate-v2] Definitions conflict with those in another file
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 51.4k
- Forks
- 30.4k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 108
Description
Having all the latest versions yarn add mongoose mongoose-paginate-v2 @types/mongoose-paginate-v2 it makes a lot of errors:
node_modules/mongoose/index.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: DocumentDefinition, FilterQuery, UpdateQuery, NativeDate, NativeError, Mongoose, SchemaTypes, STATES, connection, connections, models, mongo, version, CastError, ConnectionOptions, Collection, Connection, disconnected, connected, connecting, disconnecting, uninitialized, Error, QueryCursor, VirtualType, Schema, SchemaDefinition, SchemaTypeOpts, Subdocument, Array, DocumentArray, Buffer, ObjectId, ObjectIdConstructor, Decimal128, Map, Query, DocumentQuery, mquery, Aggregate, SchemaType, Promise, PromiseProvider, Model, Document, ModelUpdateOptions
Versions:
"mongoose": "^5.12.7"
"mongoose-paginate-v2": "^1.3.17"
"@types/mongoose-paginate-v2": "^1.3.9"
- I tried using the
@types/xxxxpackage and had problems. - I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
- I understand that
@typespackage versions do not follow SemVer. - I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
- Mention the authors (see
Definitions by:inindex.d.ts) so they can respond.- Authors: @syedMohib44 @linusbrolin @simonxca @woutgg @oktapodia @chazepps @gamsterx
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported setup with the listed mongoose, mongoose-paginate-v2, @types/mongoose-paginate-v2, and TypeScript versions. Inspect node_modules/mongoose/index.d.ts and the related type definitions to identify the duplicate declarations. Done means the TS6200 conflicts no longer occur with the stated dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100