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

Trying to transpile dynamodb-transactions #388

Closed
aaaristo opened this issue Oct 11, 2017 · 1 comment
Closed

Trying to transpile dynamodb-transactions #388

aaaristo opened this issue Oct 11, 2017 · 1 comment
Labels
Milestone

Comments

@aaaristo
Copy link

Reference repo:
https://github.com/awslabs/dynamodb-transactions

Example transpilation repo:
https://github.com/aaaristo/dynamodb-transactions-jsweet

Fails with:
JSweetTranspiler:1477 - com/amazonaws/services/dynamodbv2/transactions/Transaction.ts(561,25): error TS1005: ';' expected.

com/amazonaws/services/dynamodbv2/transactions/Transaction.ts(561,25):
let delete : com.amazonaws.services.dynamodbv2.model.DeleteItemRequest = new com.amazonaws.services.dynamodbv2.model.DeleteItemRequest().withTableName(request.getTableName()).withKey(request.getKey(this.txManager)).withExpected(expected);

Any idea?

@renaudpawlak
Copy link
Contributor

Just a guess but delete is a keyword in JavaScript. So the local variable cannot be called delete. I'll fix it automatically when possible but in the meantime, you can try to rename delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants