kbpgp icon indicating copy to clipboard operation
kbpgp copied to clipboard

Warning: Accessing non-existent property 'b2u' of module exports inside circular dependency

Open j3g opened this issue 5 years ago • 4 comments

this javascript line of code from the example code on the webisite... gives warning. const F = kbpgp["const"].openpgp;

warning:

(node:57777) Warning: Accessing non-existent property 'b2u' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:57777) Warning: Accessing non-existent property 'u2b' of module exports inside circular dependency
(node:57777) Warning: Accessing non-existent property 'Pair' of module exports inside circular dependency

j3g avatar Oct 16 '20 05:10 j3g

FIX: const FLAGS = kbpgp["const"].openpgp;

j3g avatar Dec 31 '20 07:12 j3g

Hi @j3g ,

I am using kbpgp with in a typescript module by importing it like const kbpgp = require('kbpgp') and I still get this warning. Any idea how I can overcome this?

Thank you in advance!

navya476 avatar Jun 18 '21 07:06 navya476

@navya476 Did you ever figure this out? I'm having the same issue.

cafreeman avatar Sep 20 '21 16:09 cafreeman

@navya476 Did you ever figure this out? I'm having the same issue.

Nope, I couldn't figure this out. Still using in the same way.

navya476 avatar Sep 20 '21 16:09 navya476