github / webauthn-json

🔏 A small WebAuthn API wrapper that translates to/from pure JSON using base64url.
https://github.github.com/webauthn-json/demo/
MIT License
757 stars 60 forks source link

Package subpath is not defined by exports #69

Closed iwaffles closed 1 year ago

iwaffles commented 1 year ago

I'm running in to this error: Error: Package subpath './browser-ponyfill' is not defined by "exports" in /<project_path>/node_modules/@github/webauthn-json/package.json when using the latest 2.0.2 version with the following import:

Error: Package subpath './browser-ponyfill' is not defined by "exports" in /<project_path>/node_modules/@github/webauthn-json/package.json

I'm a bit unclear if this is something I'm doing wrong or if there's a particular version I need to be using to avoid this issue. It looks like it does exist here: https://github.com/github/webauthn-json/blob/main/package.json#L23-L25

Any help would be much appreciated!

iwaffles commented 1 year ago

Ignore this! It seems to be a compilation issue with Remix. Fixed by adding this package to the serverDependenciesToBundle in remix.config.json.