Azure-Samples / Azure-Samples/document-intelligence-code-samples

DocumentIntelligenceClient is not a function

Offen
#31 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
201
Forks
115
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Edit 5/24/2024 5:50 PM**
I have tried running the example from the legacy 3.1 documents and do not run into this issue. It seems this is only an issue with the v4.0 documentation.

Output is
`Pages:
- Page 1 (unit: inch)
8.5x11, angle: 0
67 lines, 413 words
Tables:
- Extracted table: 3 columns, 5 rows (15 cells)
- Extracted table: 2 columns, 2 rows (4 cells)`

**Original**
I have tried running the example from the v 4.0 documentation and received this error.
I am running Node 16.13.0 on Windows 10.

I'm not sure what I am doing wrong or if the example has faulty code. Any guidance or resolution would be helpful. Thank you.

> Please provide us with the following information:
> ---------------------------------------------------------------

### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>
Copy and run the prebuilt model example from the [javascript documentation](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/quickstarts/get-started-sdks-rest-api?view=doc-intel-4.0.0&preserve-view=true&pivots=programming-language-javascript)

### Any log messages given by the failure
>An error occurred: TypeError: DocumentIntelligenceClient is not a function

### Expected/desired behavior
> Successfully analyze the sample document

### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the linked v4.0 JavaScript quickstart and compare its DocumentIntelligenceClient usage with the legacy 3.1 example. Reproduce the sample on Node 16.13.0, then update the documentation so the prebuilt model example runs successfully without the TypeError.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, javascript, node.js
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.