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 in production #2

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

Penteract can not be loaded in production #2

stoefln opened this issue Jan 13, 2021 · 0 comments

Comments

@stoefln
Copy link
Owner

stoefln commented Jan 13, 2021

It seems that for some reason when packaging the app via npm run export-mac, the path to the penteract module get's hardcoded. As soon as I move the .app file to another computer and execute it, I get following error:

at Object.<anonymous> (penteract.node:1)
at Object../node_modules/penteract/build/Release/penteract.node (main-bundle.js:45)
at n (bootstrap:19)
at Module../node_modules/penteract/src/index.js (index.js:1)
at n (bootstrap:19)
at i.testPenteract (App.js:45)
at onClick (App.js:65)
at Object.i (react-dom.production.min.js:14)
at m (react-dom.production.min.js:14)
at react-dom.production.min.js:14

The path to the .node file should not be hardcoded. I guess this is related to the fix I proposed here (replacing require('penteract') with require('penteract.node')): #1

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