Answer the question
In order to leave comments, you need to log in
How to add compiled binary to build version via electron-build?
There is an application on electron.js
There is a compiled binary in the node library.
In the dev version everything works fine.
In the prod version, when compiling under win, it gives an error
ERROR in ./kkt-electron-prebuild/native/index.node
[0] Module parse failed: Unexpected character '�' (1:2)
[0] You may need an appropriate loader to handle this file type.
[0] (Source code omitted for this binary file)
[0] @ ./kkt-electron-prebuild/lib/index.js 3:12-43
[0] @ ./app/main.dev.js
module: {
rules: [
{
test: /\.node$/,
use: 'node-loader'
}
]
}
Answer the question
In order to leave comments, you need to log in
In general, what was the point.
Type errors
ERROR in ./kkt-electron-prebuild/native/index.node
[0] Module parse failed: Unexpected character '�' (1:2)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question