Can't resolve 'vertx' in electron app
See original GitHub issueI’m trying to use es6-promise
in an electron app, but there is a console warning with the following:
Module not found: Error: Can't resolve 'vertx' in '/Users/mhuggins/Development/neo/neon-wallet/node_modules/es6-promise/dist'
@ ./node_modules/es6-promise/dist/es6-promise.js 140:16-26
@ ./node_modules/es6-promisify/dist/promise.js
@ ./node_modules/es6-promisify/dist/promisify.js
...
I see that the package.json
for this package includes this entry:
"browser": {
"vertx": false
},
Is fixing this issue for electron as easy as adding this entry as well?
"electron": {
"vertx": false
},
In case it’s relevant, the webpack target
value is set to “electron”.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
vertx module not found when using webpack - Stack Overflow
To resolve the issue: Install @vertx/core ( npm i @vertx/core ). Edit the file ./node_modules/when/lib/env.js , and change line 32 from
Read more >Developers - Can't resolve 'vertx' - - Bountysource
When trying to use this package on initial install and addition, I get the following: client?e4ca:126 .
Read more >electron can't resolve 'fs' in | The AI Search Engine You Control
When I develop an electron app (and thus have access to Node's fs module), I can't access node modules because typescript or webpack...
Read more >HID VertX EVO V1000 Networked Controller
Provides fully functional offline operation when not actively communicating with the host access control software application, performing all access decisions ...
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
Lets assume it does. I’m going to close.
I’m sick of this webpack issue, I’ll try to find a reasonable solution shortly.
What was the solution?