question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native module not found after Build

See original GitHub issue
  • Version: electron-builder v21.2.0 electron v6.0.9 node v10.16.0

  • Target:

  1. Mac zip, dmg
  2. Windows nsis
  3. Linux AppImage, tar.gz

Custom native module not found after building the app installers. However, running with electron . in dev environment, It works fine. Here is the screen capture. image

Here is the node-gyp configuration from binding.gyp file { "targets": [{ "target_name": "altron", "sources": [ "src/altron.cc" ], }] }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vkiranmaniyacommented, Feb 1, 2020

The issue has not been fixed, please provide detail on how to use compiled native module in electron production build.

2reactions
vkiranmaniyacommented, Nov 6, 2019

This looks similar to the issue I reported here: #4370 there is no solution or workaround given.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve 'react-native' - Stack Overflow
I faced this issue since many days "Module not found" the simple solution is go to your project folder and delete node_modules folder...
Read more >
Error: Notifee native module not found. · Issue #478 - GitHub
Hi after installation in my main screen i can import notifee but when use like notifee.displayNotification(JSON.parse(message.data.notifee)) ...
Read more >
Troubleshooting | React Navigation
If the module points to an npm package (i.e. the name of the module doesn't with ./ ), then it's probably due to...
Read more >
Native Node Modules | Electron
If you installed a native module and found it was not working, you need to check the following things: When in doubt, run...
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found