Skip to content

An object was expected #46

Description

@andrew-oreshko

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!

Activity

  1. addaleax commented on Sep 14, 2020

    @addaleax
    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)

  2. andrew-oreshko commented on Sep 14, 2020

    @andrew-oreshko
    Author

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

  3. andrew-oreshko commented on Sep 14, 2020

    @andrew-oreshko
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions