Open marvinhagemeister opened 7 months ago
Looking at the deno info
output, these are the duplicate packages:
npm:/elysia@0.7.29_@sinclair+typebox@0.31.17
npm:/elysia@0.7.29_@sinclair+typebox@0.31.17_openapi-types@12.1.3
The npm:/elysia@0.7.29_@sinclair+typebox@0.31.17
is duplicated because it's found under npm:/@bogeychan/elysia-polyfills@0.6.1/deno/index.js
, which does not define a dependency on openapi-types
. However, elysia
is also a peer dependency of @elysiajs/swagger
, which does have a dependency on openapi-types
. This causes a duplication of the dependency.
So, a workaround is to define a dependency on openapi-types
at the top level, by adding this import statement:
// run `rm deno.lock` after doing this
import "npm:openapi-types@12.1.3";
Reported on discord:
The error that I'm getting looks like this when I run the provided sample code: