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

Error when generating types #12

Open
itsallrelative opened this issue Sep 26, 2022 · 4 comments
Open

Error when generating types #12

itsallrelative opened this issue Sep 26, 2022 · 4 comments

Comments

@itsallrelative
Copy link

itsallrelative commented Sep 26, 2022

SyntaxError: Unexpected keyword or identifier. (3865:2) 3865 | cybersource.http.flextoken.mock: string; Write @types/dw/index.d.ts

@itsallrelative
Copy link
Author

image

@sholsinger
Copy link

@itsallrelative do you have cybersource defined in that context via require()?

@itsallrelative
Copy link
Author

@sholsinger No, it is just a custom attribute definition

@brigon-clever-age
Copy link

Hi,

I guess it's complaining about '.' in attribute name, I had the same issue with " " in attribute names, and created an issue and a fix on this ticket: #14

Hope it helps !

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

3 participants