Open
Description
openedon Aug 25, 2023
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.
- ID: 52bdd80b-1ca5-fc15-3d27-0803f144d49c
- Version Independent ID: 449e0e57-f6d9-b829-9905-e4fc62482e01
- Content: Azure Model Parser client library for JavaScript
- Content Source: docs-ref-services/preview/dtdl-parser-readme.md
- Service: digital-twins
- Technology: azure
- GitHub Login: @johngallardo
- Microsoft Alias: jgalla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
This issue points to a problem in the data-plane of the library.Workflow: This issue is responsible by Azure service team.This issue requires a change to an existing behavior in the product in order to be resolved.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK team