Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Deprecation of injectCapacitor method

$
0
0

@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 from init(inject = true) to init(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: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>