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

Penteract can not be loaded #1

Open
stoefln opened this issue Jan 13, 2021 · 0 comments
Open

Penteract can not be loaded #1

stoefln opened this issue Jan 13, 2021 · 0 comments

Comments

@stoefln
Copy link
Owner

stoefln commented Jan 13, 2021

See kaelzhang/penteract-ocr#11

When starting electron dev server via npm run start-dev you will get a stacktrace similar to this:

  Module not found: Error: Can't resolve '../build/Release/penteract' in '/Users/steph.../electron-penteract/node_modules/penteract/src'
  @ ./node_modules/penteract/src/index.js 1:0-49 25:4-12
  @ ./app/App.js
  @ ./app/main.js
  @ multi @babel/polyfill react-hot-loader/patch webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server ./app/main.js

I figured out that by changing the file electron-penteract/node_modules/penteract/src/index.js I can fix the error:

changing the line import bindings from '../build/Release/penteract' to import bindings from '../build/Release/penteract.node'

However: This seems to trigger another bug: #2

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

1 participant