Skip to content

Package openapi-types is missing, but gets requested by yarn #199

@Myrmod

Description

@Myrmod

I created a monorepository using turborepo with the yarn (v3.1.1) option. In there I have two express applications that use swagger. While trying to install I get the following log output:

YN0000: ┌ Resolution step
➤ YN0002: │ swagger-parser@npm:10.0.2 doesn't provide openapi-types (p8111f), requested by @apidevtools/swagger-parser
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 389ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ turbo@npm:1.0.28 must be built because it never has been before or the last one failed
➤ YN0009: │ turbo@npm:1.0.28 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-9144f05e/build.log)
➤ YN0000: └ Completed in 0s 310ms
➤ YN0000: Failed with errors in 0s 889ms
yarn explain peer-requirements p8111f
➤ YN0000: swagger-parser@npm:10.0.2 doesn't provide openapi-types, breaking the following requirements:

➤ YN0000: @apidevtools/swagger-parser@npm:10.0.2 [9cdba] → >=7 ✘

What might be the reason and how can I debug this properly?

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