Bug report: Errorr performing OCR on image. (TypeError: c.load is not a function)
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 26m
- Merged PRs (30d)
- 33
Description
**Describe the bug**
OCR does not work. Attempting to OCR a supported image type results in
`Error performing OCR on image. (TypeError: c.load is not a function)`
**To Reproduce**
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
1. Select operation `Optical Character Recognition`
2. Add a supported file type
3. Observe Error
**Expected behaviour**
No error, OCR to perform as expected
**Screenshots**

**Desktop (if relevant, please complete the following information):**
* Version: 10.16.0
* Compile time: 12/04/2024 13:56:52 UTC
* User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
* [Link to reproduce](https://gchq.github.io/CyberChef/#recipe=Optical_Character_Recognition(true))
**Additional context**
Thanks as always.
Contributor guide
Research direction
Start with the Optical Character Recognition operation using the linked reproduction recipe and a supported image, confirming the c.load error on version 10.16.0. Trace the operation's OCR entry point and related dependency usage; done means the recipe completes OCR without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100