|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: Why am I encountering errors like "r.taskSet.intermediateResultUnits is not iterable" when using frameworks like React or Angular with Dynamsoft packages? |
| 4 | +keywords: Dynamsoft Capture Vision, FAQ, version, mismatch, taskset |
| 5 | +description: Why am I encountering errors like "r.taskSet.intermediateResultUnits is not iterable" when using frameworks like React or Angular with Dynamsoft packages? |
| 6 | +needAutoGenerateSidebar: false |
| 7 | +--- |
| 8 | + |
| 9 | +# Why am I encountering errors like "r.taskSet.intermediateResultUnits is not iterable" when using frameworks like React or Angular with Dynamsoft packages? |
| 10 | + |
| 11 | +[<< Back to FAQ index](index.md) |
| 12 | + |
| 13 | +Topic: Resolving Version Mismatch Issues in Dynamsoft Packages |
| 14 | + |
| 15 | +Resolution: |
| 16 | + |
| 17 | +When using a framework like React or Angular with Dynamsoft packages, it's crucial to ensure that the version number of each Dynamsoft package listed in the `package.json` file matches the version number defined in the `engineResourcePaths` generally found defined in the cvr.ts file if you have followed the samples for developement. |
| 18 | + |
| 19 | +In the `engineResourcePaths` configuration, make sure to include the correct version numbers for each Dynamsoft package mentioned in `package.json`. Here's an example of how to define the engineResourcePaths with the correct version numbers: |
| 20 | + |
| 21 | +```javascript |
| 22 | +Dynamsoft.Core.CoreModule.engineResourcePaths = { |
| 23 | + std: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-std@<std_version>/dist/", |
| 24 | + dip: "https://cdn.jsdelivr.net/npm/dynamsoft-image-processing@<dip_version>/dist/", |
| 25 | + core: "https://cdn.jsdelivr.net/npm/dynamsoft-core@<core_version>/dist/", |
| 26 | + license: "https://cdn.jsdelivr.net/npm/dynamsoft-license@<license_version>/dist/", |
| 27 | + cvr: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-router@<cvr_version>/dist/", |
| 28 | + dbr: "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@<dbr_version>/dist/", |
| 29 | + dce: "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@<dce_version>/dist/" |
| 30 | +}; |
| 31 | +``` |
| 32 | +Replace <std_version>, <dip_version>, <core_version>, <license_version>, <cvr_version>, <dbr_version>, and <dce_version> with the appropriate version numbers corresponding to each Dynamsoft package. |
| 33 | + |
| 34 | +```javascript |
| 35 | +//some lines from package.json |
| 36 | +"dependencies": { |
| 37 | +... |
| 38 | + "dynamsoft-barcode-reader": "<dbr_version>", |
| 39 | + "dynamsoft-camera-enhancer": "<dce_version>", |
| 40 | + "dynamsoft-capture-vision-router": "<cvr_version>", |
| 41 | + "dynamsoft-core": "<core_version>", |
| 42 | + "dynamsoft-license": "<license_version>", |
| 43 | + "dynamsoft-utility": "<utility_version>", |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +By following these steps and maintaining consistency in version numbers between `package.json` and `engineResourcePaths`, you can mitigate version mismatch errors and ensure the proper functioning of Dynamsoft packages within your framework-based application. |
0 commit comments