You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i "@paddlejs/paddlejs-core"
npm i "@paddle-js-models/ocr"
Use in app in Counter.svelte
import * as ocr from "@paddle-js-models/ocr";
Now following error occurs.
Problem description
Please attach the log file if there's problem happend.
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Projects\ocr-test\node_modules\d3-polygon\src\index.js from C:\Projects\ocr-test\node_modules\@paddle-js-models\ocr\lib\index.js not supported.
Instead change the require of C:\Projects\ocr-test\node_modules\d3-polygon\src\index.js in C:\Projects\ocr-test\node_modules\@paddle-js-models\ocr\lib\index.js to a dynamic import() which is available in all CommonJS modules.
The text was updated successfully, but these errors were encountered:
Environment
Paddle OCR JS
paddlejs
Counter.svelte
Now following error occurs.
Problem description
Please attach the log file if there's problem happend.
The text was updated successfully, but these errors were encountered: