Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App breaks without optional peer dependency @simplewebauthn/browser installed #262

Closed
MasterCarl opened this issue Oct 28, 2024 · 1 comment · Fixed by #266
Closed

App breaks without optional peer dependency @simplewebauthn/browser installed #262

MasterCarl opened this issue Oct 28, 2024 · 1 comment · Fixed by #266

Comments

@MasterCarl
Copy link
Contributor

After upgrading from 0.4.4 to 0.5.0, I'm getting runtime errors such as

webauthn.js?v=1346bd92:2 Uncaught (in promise) SyntaxError: The requested module '/_nuxt/@id/__vite-optional-peer-dep:@simplewebauthn/browser:nuxt-auth-utils' does not provide an export named 'browserSupportsWebAuthn' (at webauthn.js?v=1346bd92:2:3)

The error originates from

import {browserSupportsWebAuthn, browserSupportsWebAuthnAutofill, platformAuthenticatorIsAvailable, startAuthentication, startRegistration} from "/_nuxt/@id/__vite-optional-peer-dep:@simplewebauthn/browser:nuxt-auth-utils";

Installing @simplewebauthn/browser fixes this issue, but that should be optional since I'm using

export default defineNuxtConfig({
auth: {
    webAuthn: false,
  }
})
@atinux
Copy link
Owner

atinux commented Oct 30, 2024

Happy to take a look at it @Gerbuuun ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants