Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version error #31

Open
grctest opened this issue Sep 23, 2023 · 0 comments
Open

New version error #31

grctest opened this issue Sep 23, 2023 · 0 comments

Comments

@grctest
Copy link

grctest commented Sep 23, 2023

Updated to version "@elysiajs/swagger": "^0.7.2", and am now getting the following error when I navigate to the swagger url:

馃 Elysia is running at localhost:port
56 |                 registerSchemaPath({
57 |                     schema,
58 |                     hook: route.hooks,
59 |                     method: route.method,
60 |                     path: route.path,
61 |                     models: app.definitions.type,
                                ^
TypeError: undefined is not an object (evaluating 'app.definitions.type')
      at /node_modules/@elysiajs/swagger/dist/index.js:61:28
      at forEach (:1:20)
      at /node_modules/@elysiajs/swagger/dist/index.js:55:12
GET - /swagger/json failed

Reverting to version 0.6.2 resolves the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant