Azure-docs: TypeError - Detection Doc

Created on 23 Jul 2019  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi, I tried the quickstart for Node.js, but it didn't work. I get in the prompt command and return to me the following Error: TypeError: TypeError: TrainingApi.TrainingAPIModels.Region is not a constructor

Screen-Shot-07-22-19-at-10-27-PM.png

Screen-Shot-07-22-19-at-10-28-PM.png


Document Details

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

Pri3 assigned-to-author cognitive-servicesvc custom-visiosubsvc product-issue triaged

All 9 comments

@glaucia86 Thanks for the feedback. We are investigating into the issue and will update you shortly.

@areddish We can confirm that this issue occurs with the latest version of the package. Does the recent migration of nodejs packages to JS packages causing the issue?

@RohitMungi-MSFT Yes, this is due to recent migration. I'll need to investigate a solution.

I'll try to see something that I may help. I saw a same problem with another issue as well HERE

It would be a same solution? Just saying...

cc: @areddish and @RohitMungi-MSFT

I also got the same error.
It is the same error to try this.

any update on this issue

A small workaround to this issue is instead of TrainingApi.TrainingAPIModels.Region() just replace with {} empty object. this solves my issue

@areddish just see it this answer.

A small workaround to this issue is instead of TrainingApi.TrainingAPIModels.Region() just replace with {} empty object. this solves my issue

This has been identified as a product issue, not a doc bug or enhancement.
We want you to get an answer as quickly as possible so, please take a look at this document and post your issue to the relevant forum.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bdcoder2 picture bdcoder2  Â·  3Comments

bityob picture bityob  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments