Skip to content

Azure Model Parser client library for JavaScript -- bug in code #26946

Open

Description

I am looking at the code for example.js from this page. When I copy the code, there is an error in the nested await modelParser.parse() method. The error that I am getting is 'await' expressions are only allowed within async functions and at the top levels of modules. Is there any fix for this?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Digital TwinsDocsService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions