@mandolyte wrote:
There is currently a warning, followed by an error, when Electron is executed after the build:
WARNING: injectCapacitor method is deprecated and will be removed in next major release. Check release notes for mi gration instructions Trace at getURLFileContents (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js: 7:11) at injectCapacitor (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js:20: 33) at Timeout._onTimeout (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js: 156:44) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7)
After some debugging, I discovered that if I changed this line in
./electron/index.js
frominit(inject = true)
toinit(inject = false)
, then it works fine.Then I found that this is the fix is already in place in the Github repo, but has not yet been released.
So two questions:
- when will this fix be released to NPM?
- any advice on a work-around in the meantime?
Posts: 1
Participants: 1