Skip to content

Module not found: Can't resolve '@simplewebauthn/browser' when upgrading to 0.9.0 #48

@gregorbg

Description

@gregorbg

Plugin version

0.9.0

Payload version

3.59.1

Auth.js version

5.0.0-beta.29

Describe the bug

When upgrading to v0.9.0, I have followed the guide at https://github.com/CrawlerCode/payload-authjs/releases/tag/v0.9.0. The setup that used to work flawlessly under v0.8.4 now fails with the following error message:

Image

This feels related to the WebAuthn passkey support which was added, but we're not actually using it.
I have done a little bit of digging and I saw that next-auth specifies the library in question (@simplewebauthn/browser) as a peerDependency but optional.

Of course the simplest solution would be to just install @simplewebauthn/browser but (a) we don't need it and (b) if it is now required for your project then it should be listed as dependency.

To Reproduce

  1. Install the library v0.9.0 into your existing Payload project
  2. Try to open the Payload landing page
  3. Observe error message

Additional context / Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus: verifiedIf an issue has been reproduced

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions