-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
When using the webpack plugin, unable to find native modules #703
Comments
This also appears to result in the packaging step not picking up the |
I wonder if this webpack plugin mentioned in Slack helps with this problem. |
This comment has been minimized.
This comment has been minimized.
@jrobeson This issue is specifically for native module issues, please don't hijack issue threads. I'm hiding your comment, please raise a new issue and follow the new template including providing a complete repro. |
yes, this is for native modules. i'm using a native module with that exact configuration. I'm not asking for support. I just wanted to share a working configuration. Can you explain how that is offtopic for this particular thread? |
Fixed in The actual solution for people with existing configs is to use the above mentioned version of forge and add these two
|
Just spent a few hours trying to find the best way to import multiple native modules. I am developing one locally, and have used I also note that your fork is some commits behind @zeit/webpack-asset-relocator-loader. I'm currently resorting to using Just wondering if there's a better solution? |
@CraigMason could you elaborate a little bit. I'm interested in your solution. It seems to be similar to what this SO post talks about. This post is also missing some key details too though. If you could post how you handled this error I could test it out on my setup. |
Please describe your issue:
Repro here: https://github.com/nornagon/electron-forge-native-module-repro
When using
@electron-forge/plugin-webpack
and importingserialport
, an error is thrown when theserialport
module tries to load its native module:What does your
config.forge
data inpackage.json
look like?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using
electron-forge init
is a good starting point, if that is not thesource of your problem.
https://github.com/nornagon/electron-forge-native-module-repro
The text was updated successfully, but these errors were encountered: