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
I get the following error when running my next.js app on dev local:
⨯ TypeError: createRequire is not a function
at eval (webpack-internal:///(rsc)/./node_modules/scribe.js-ocr/js/containers/fontContainer.js:29:24) {
page: '/api/import'
This is on Node v20.16.0 with scribe-ocr version ^0.5.1
Any help would be greatly appreciated
The text was updated successfully, but these errors were encountered:
tomhalley
changed the title
https://github.com/scribeocr/scribe.js/issues
createRequire is not a function
Dec 11, 2024
We have a functioning example using Next.js listed in the readme (see here). If you implement the configuration options found there Scribe.js should work with Next.js.
I am trying to run
scribe.js-ocr
in an api endpoint with Next.JS. Here's a function called from my route (taken from the example)I get the following error when running my next.js app on dev local:
This is on Node
v20.16.0
with scribe-ocr version^0.5.1
Any help would be greatly appreciated
The text was updated successfully, but these errors were encountered: