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

Usage with electron #107

Open
Nimaear opened this issue Mar 17, 2023 · 2 comments
Open

Usage with electron #107

Nimaear opened this issue Mar 17, 2023 · 2 comments

Comments

@Nimaear
Copy link

Nimaear commented Mar 17, 2023

When trying to use this together with electron, I am encountering the next error:

App threw an error during load
Error: Cannot find module './build/Release/memoryjs'

I tried the different solutions proposed in https://www.electronjs.org/docs/latest/tutorial/using-native-node-modules, but noen of them seem to be working. I also tried to follow the build instructions for nw.js on https://github.com/Rob--/memoryjs/issues/23, but they also were of no help. Does anyone have a build environment working with the latest electron?

My electron version is:

    "@electron-forge/cli": "^6.0.5",
    "@electron-forge/maker-deb": "^6.0.5",
    "@electron-forge/maker-rpm": "^6.0.5",
    "@electron-forge/maker-squirrel": "^6.0.5",
    "@electron-forge/maker-zip": "^6.0.5",
    "@electron-forge/plugin-webpack": "^6.0.5",
@tigohenryschultz
Copy link

You have to compile it. Follow the instructions.

@Rob--
Copy link
Owner

Rob-- commented Mar 29, 2024

Does that directory exist? If not, run npm install from a terminal with a working directory of the memoryjs module (so form ./node_modules/memoryjs from your project's perspective). Or just run npm install memoryjs and look for the build error. If it can't find the directory it's likely failing to build. I've not tried building this project with Electron for at least a few years now so I'm not sure what the SOP is.

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

3 participants