Skip to content

error: SyntaxError: '=>' expected. #561

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

Closed
duke79 opened this issue Apr 14, 2021 · 1 comment · Fixed by #563
Closed

error: SyntaxError: '=>' expected. #561

duke79 opened this issue Apr 14, 2021 · 1 comment · Fixed by #563

Comments

@duke79
Copy link

duke79 commented Apr 14, 2021

Maybe some problem with empty enums?

Console log -

error: SyntaxError: '=>' expected. (141:27)
  139 | "incoterm": string;
  140 | "invoiceType": ('DEMURRAGE') | ('FREIGHT') | ('DETENTION') | ('FREIGHT_AND_LOCALS') | ('LOCAL_CHARGES') | ('INLAND_CARRIAGE') | ('OTHERS');
> 141 | "invoiceTypeToDisplay": ();
      |                           ^
  142 | "invoiceNumber": string;
  143 | "invoiceDate": string;
  144 | "invoiceFile": string;

This is what I found in json -

"invoiceTypeToDisplay": {
            "type": "number",
            "readOnly": true,
            "enum": []
          },
@drwpow
Copy link
Contributor

drwpow commented Apr 15, 2021

Good find! Posted a fix here: #563

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

Successfully merging a pull request may close this issue.

2 participants