Open Myrmod opened 2 years ago
A workaround I could use is this:
yarn remove swagger-jsdoc && yarn add -P swagger-jsdoc
Here we also install the peer dependencies.
I have the same problem. but not with yarn, with npm
node_modules/@apidevtools/swagger-parser/lib/index.d.ts:1:25 - error TS2307: Cannot find module 'openapi-types' or its corresponding type declarations.
1 import { OpenAPI } from "openapi-types";
@sinoohe could you help me out with a pull request here? I've spent three days straight just trying to fix the upstream dependencies to get 10.1.0 out and I really need a hand with this.
I think the problem is that swagger-parser
shim package needs to declare the openapi-types
as (some kind of) a dependency.
+1 -- Basically, this project requires 7
but the current is 12
.
This should be a peerDependency
.
Anyone got a PR to fix this.
You can install openapi-types
to your project to get around this.
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:
What might be the reason and how can I debug this properly?