You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to build my client-side JavaScript (which uses your @webauthn/client) using rollup, Unibabel 2 throws an Error because it's not designed for use in a Node context. In Unibabel 3, they added support for Node use.
Alternatively, if you can explain how you got Unibabel 2 to work in your "example/front" code, that would be helpful. Apparently you got past this somehow, but reading through your code I still haven't figured out how.
(Thanks)
The text was updated successfully, but these errors were encountered:
Until a node-based build process is available and/or I figure out how to do that with the current version of this library, it turns out that I can simply copy the @webauthn/client library's "dist/main.js" into my client side files, then pull it into my HTML file with a script tag. I can then reference its functions using window.functionName() (e.g. window.solveRegistrationChallenge(...)).
I did try using npm-force-resolutions to force my code to use [email protected], but the public interface for things has changed from what was used in 2.x (not surprisingly, since it's a major version bump, implying backwards-compatibility-breaking changes), so the @webauthn/client code doesn't work if I'm using Unibabel 3.0.0.
I'll stick with simply loading in the webauthn-client.js (copied/renamed from @webauthn/client's "dist/main.js" file) for now, because that works.
(Thanks Wallix for making this library available, even if I am struggling a little with the learning curve.)
When trying to build my client-side JavaScript (which uses your
@webauthn/client
) using rollup, Unibabel 2 throws an Error because it's not designed for use in a Node context. In Unibabel 3, they added support for Node use.Alternatively, if you can explain how you got Unibabel 2 to work in your "example/front" code, that would be helpful. Apparently you got past this somehow, but reading through your code I still haven't figured out how.
(Thanks)
The text was updated successfully, but these errors were encountered: