Closed renchris closed 1 year ago
Hmm, I tried to use a barebones project repo using pnpm to install dependencies, but I wasn't able to recreate the issue you're encountering. I'm going to need you to help me out here with a basic reproduction repo that can recreate this, especially since you mentioned that you're experiencing this in your NextJS project.
Once I have something that can pull down locally to reproduce the problem is as basic a NextJS project as you can manage then I'll probably have a shot at figuring out what's going on here.
Three weeks out and there's been no follow-up so I'm closing this out for now. Please feel free to reopen if you can provide a minimal reproduction that I can use to reproduce this locally.
Describe the issue
During runtime, I get a warning message of:
Expected behavior
I expect that this warning should not have shown as having
@simplewebauthn/server
as the project dependency should self-contain all its own dependencies.Code Samples + WebAuthn Options and Responses
The imports I have in
login.ts
from@simplewebauthn/server
areDependencies
SimpleWebAuthn Libraries
Additional context
I can fix this by installing 'encode' as a dependency of my project with the command
pnpm add -D encoding
but my understanding@simplewebauthn/server
should already have 'encode' as its own dependencyI am using NextJS App Router and my login.ts file is a 'use server' file.
This warning shows up on page renders before any button is pressed to run any function.