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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module '@fresha/json-api' or its corresponding type declarations. #159

Open
dominiwe opened this issue Aug 6, 2024 · 0 comments

Comments

@dominiwe
Copy link

dominiwe commented Aug 6, 2024

I used the following command to try to generate nestjs server code:

npx fresha-openapi-codegen \
  server-nestjs \
  --input ../openapi.yml \
  --output .

Note that I did not use --json-api. When I then try to start the backend with npm run start:dev I get the following:

src/my.controller.ts:2:25 - error TS2307: Cannot find module '@fresha/json-api' or its corresponding type declarations.

2 import { JSONAPI } from "@fresha/json-api";

I also couldn't find the module @fresha/json-api anywhere.

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