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

An object was expected #46

Open
andrew-oreshko opened this issue Sep 14, 2020 · 3 comments
Open

An object was expected #46

andrew-oreshko opened this issue Sep 14, 2020 · 3 comments

Comments

@andrew-oreshko
Copy link

Hey all! I'm using this template https://github.com/electron-react-boilerplate/electron-react-boilerplate to build an app. I added ref-napi (v. 2.1.2) as a native dependency. It works ok when building the app locally, but as soon as I try to run a packaged version of the app, the error from screenshot get raised
image

Actually this line fails
image

Invocation of the require('node-gyp-build')(path.join(__dirname, '..')) gives me the error listed above.
If anyone has any suggestions, please share. Thanks!

@addaleax
Copy link
Contributor

Since the stack trace seems to indicate that this is Electron-specific behavior, you might want to report it there (and share your Electron version as well)

@andrew-oreshko
Copy link
Author

andrew-oreshko commented Sep 14, 2020

What is the maximum version of electron that ref-napi should work with?

@andrew-oreshko
Copy link
Author

andrew-oreshko commented Sep 14, 2020

@addaleax I'm not really sure it is electron-specific error. I've already installed some other native dependencies and they seem to work well (sqlite)

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