Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard dependency on Webpack when used with Electron #14

Open
ryanbarr opened this issue Jul 20, 2022 · 1 comment
Open

Hard dependency on Webpack when used with Electron #14

ryanbarr opened this issue Jul 20, 2022 · 1 comment

Comments

@ryanbarr
Copy link

Due to non_webpack_require at index.js:11, there is a hard dependency on Webpack if you are attempting to use node-native-ocr with Electron.

In my scenario, I am using Vite which uses rollup.js. Due to __non_webpack_require__ being Webpack-specific, this makes the library unusable in my scenario.

I'm open to suggestions on shims, but would be interested in more permanent solutions in the library itself.

@stoefln
Copy link
Owner

stoefln commented Dec 28, 2022

@ryanbarr sorry for the late reply. Unfortunately I don't have any experience with vite or rollup.js.

Did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants