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

[Java to Typescript-fetch] missing appropriate loader #9712

Closed
SimpleCookie opened this issue Sep 12, 2019 · 1 comment
Closed

[Java to Typescript-fetch] missing appropriate loader #9712

SimpleCookie opened this issue Sep 12, 2019 · 1 comment

Comments

@SimpleCookie
Copy link

SimpleCookie commented Sep 12, 2019

Description

Hi, if this is due to my lack of knowledge then my excuses.
I am receiving the following error:

Module parse failed: Unexpected token (15:7)
You may need an appropriate loader to handle this file type.
> export interface ConfigurationParameters {
|     apiKey?: string | ((name: string) => string);
|     username?: string;

even if I am just trying to do a console.log() of my imported API-module.
I feel like I am missing something and I can't seem to find it it the documentation, google nor figure it out myself.

Swagger-codegen version

2.4.8 swagger-codegen-maven-plugin

Swagger declaration file content or url

Unfortunately I cannot disclose this information due to client NDA.

Similar references

#9459
#8024

@SimpleCookie
Copy link
Author

I personally solved the issue by using the fork openapi-generator.

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