-
Notifications
You must be signed in to change notification settings - Fork 167
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate-swagger doesn't work with typescript code #608
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
I would like try it... |
Go for it! |
any updates here? |
@mcollina |
Personally. I just called |
Prerequisites
Fastify version
4.15.0
Plugin version
No response
Node.js version
v19.7.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
Monterey (12.5.1)
Description
I'm trying to generate swagger using fastify-cli for a Typescript project and getting an error
SyntaxError: Cannot use import statement outside a module
.Steps to Reproduce
Run
npm install
Add
@fastify/swagger
-npm install @fastify/swagger
In the
src/app.ts
add:Expected Behavior
No response
The text was updated successfully, but these errors were encountered: