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.

using browserify with electron

See original GitHub issue

I’m building react based desktop pplication with github electron. Electron allow to use node.js features in browser code. However I still need browserify for compile react files.

The issue is that with standard browserify policies node code goes invalid. require no longer work as expected, __filename and __dirname start showing things which is not close to ‘on-disk’ reality, etc.

Is there is any kind of vision how it’s possible to friend electron with browserify?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
angrykoalacommented, Oct 12, 2017
Uncaught Error: Electron failed to install correctly, please delete node_modules/electron and try installing again

Error thrown when trying this when using browserify+vue on my app.js:

"browserify": "browserify -t vueify browserify --ignore-missing --no-builtins --no-commondir --insert-global-vars=\"global\" --no-browser-field -e app.js -o resources/bundle.js --debug",

Read more comments on GitHub >

github_iconTop Results From Across the Web

blahah/electron-renderify: Browserify transform to ... - GitHub
Browserify transform to allow bundling for Electron renderer processes. Prefix calls to require as window.require for node and electron built-in modules. This ...
Read more >
node.js - browserify bundle electron app main process file
I am building a electron app and currently using browserify for the renderer (web page) files like any other javascript front end.
Read more >
Electron Adventures: Episode 48: path-browserify
path-browserify. Backend JavaScript has path module which handles common path manipulation, but browser APIs have nothing like it. Fortunately ...
Read more >
So the next step would be to write "electron-browserify.js ...
I can't really remember who but some months ago a coding scratchpad website launched full virtualized Linux environments in the browser through WASM,...
Read more >
Browserify
Bundle up your first module ... Browsers don't have the require method defined, but Node.js does. With Browserify you can write code that...
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