Skip to content

The module "midi" is supposedly non-context-aware, despite being updated to support Electron. #35

@Mister-SOSA

Description

@Mister-SOSA

Forgive me if I'm making some sort of mistake, but I am trying to load easymidi into my Electron app. Upon requiring the package, I get the following error:

Uncaught Error: Loading non-context-aware native module in renderer: '\\?\C:\Users\my_user\Documents\Midi-App\midi-electron\node_modules\midi\build\Release\midi.node'. See https://github.com/electron/electron/issues/18397.

Upon further research, I see that midi was in fact updated to be context aware, and your wrapper does use the latest version, so what gives?

To reproduce the error, simply add const easymidi = require('easymidi'); to your main.js file before running npm start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions