[v6] webpack: keytar native module has hardcoded path
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Using the default webpack template, my node native are loaded somewhat like this, using absolute path:
function(e, t, a) {
(function (e) {
try {
global.process.dlopen(e, "D:\\path\\to\my\\repo\\node_modules\\keytar\\build\\Release\\keytar.node")
} catch (e) {
throw new Error("Cannot open D:\\path\\to\my\\repo\\node_modules\\keytar\\build\\Release\\keytar.node: " + e)
}
}
).call(this, a(61)(e))
}
Obviously, it works fine till I blast my node_module folder to oblivion, but as soon as I do, or -more importantly- try to distribute my app, it doesn’t work.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
[v6] webpack: keytar native module has hardcoded path #1029
Try to run: initial error of the post Cannot open D:\\path\\to\my\\repo\\node_modules\\keytar\\build\\Release\\keytar.node: I noticed that ...
Read more >Electron Forge v6, Keytar & Node-Loader Error "no suitable ...
I cannot decipher what is happening as I can see the package .node files are copied into ./webpack/main/native_modules , but there is a...
Read more >node-loader - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Untitled
#degree Digitalizacija na tv makedonija, Watch the nanny season 6 episode 7, Bird feather clipart, Indian jewelry set for wedding, Adding exponents with...
Read more >Zowe Version 1.26 Documentation
ZSS is written in C and has native calls to z/OS to provide its services. ... Plug-in: Enabled support on Node.js v14 by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @shezuka-monkey!! That fixed it for me:
Before webpack.rules.js
After webpack.rules.js
Got it work Changes that I made:
@zeit/webpack-asset-relocator-loader
version from0.5.0
to0.6.2
There was module
node-loader
And propertynode: { __dirname: true }