Skip to content

Remove @types/mongoose dependency from @types/mongoose-geojson-schema #53407

@jamiehaywood

Description

@jamiehaywood

Is something wrong with CI or publishing infrastructure?

If you know how to fix the issue, make a pull request instead.

@bondz - I'm not sure if this is in your control or not. I looked at your original PR but I can't see any reference to dependencies on @types/mongoose. It would be good to add this as an optional peerdep if possible.

For anyone who is having mongoose type conflicts relating to this:

  1. Mongoose@5.11.0 now includes its own types that are incompatible with @types/mongoose@5.10.5. This means you either need to pin your version to 5.10.9 in pkg json or remove @types/mongoose as a dependency.
  2. Because @types/mongoose-geojson-schema has a dependency on @types/mongoose you'll experience errors. The way around this is to remove @types/mongoose-geojson-schema and copy the contents of @types/mongoose-geojson-schema index.d.ts to a global.d.ts inside your src

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions