Closed harishajdarevic closed 4 years ago
Are you sure this is caused by the auth0 login package? It looks like it's choking whilst importing zlib, which as far as I know isn't part of this package's dependency tree.
Going to close this for inactivity - let me know if you still have issues
Hi,
I'm running into the exact same error, in my case originating from
var electron_auth0_login_1 = __importDefault(__webpack_require__(/*! electron-auth0-login */ "./node_modules/electron-auth0-login/dist/index.js"));
It seems to have something to do with the codependency
package
at Object.module.exports../node_modules/codependency/index.js.exports.findPackage (/Users/smeevil/dev/electron/devnote/.webpack/main/index.js:10810:13) at Object.module.exports../node_modules/codependency/index.js.exports.register (/Users/smeevil/dev/electron/devnote/.webpack/main/index.js:10896:20)
as far as I can trace it back the root cause seems to be line 7 in index.ts:
const requirePeer = codependency.register(module);
I could try a different version of codependency
or possibly remove it entirely. If I remove it, though, it will mean that anyone who installs this package will end up installing node-keytar
whether or not their project uses it. This is preferable to the project not working though.
Still not really sure why webpack is choking on the codependency call though.
I'm not really in a position to fix this right now but I'll gladly accept pull requests
I'm going to close this due to inactivity. If you have had any further problems, comment here and I will reopen the issue. Thanks.
Hello,
Here is mine setup:
In angular component I did the following:
And I am getting error: