OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.87k stars 6.59k forks source link

How to use typescript-axios in een quasar (vue) projects #5910

Open Olafxso opened 4 years ago

Olafxso commented 4 years ago

Hi,

I have added this script to my package.json of my quasar project. "api-script": "openapi-generator generate -i api.json -g typescript-axios -o src/components/openapi"

To use it I have tried to import it in my vue template like this: import Api from 'components/openapi/index.ts'

building the project results in a error: ` These relative modules were not found:

jimschubert commented 4 years ago

@Olafxso hey I don't have an answer for you because I don't really use Typescript. I'd suggest reaching out via Slack to see if someone from the community might be able to help, or moving your question to the openapi-generator repo.

auto-labeler[bot] commented 4 years ago

👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.