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

ReferenceError: generateChallenge is not defined with v12.0.0 #648

Closed
semoal opened this issue Dec 1, 2024 · 3 comments
Closed

ReferenceError: generateChallenge is not defined with v12.0.0 #648

semoal opened this issue Dec 1, 2024 · 3 comments

Comments

@semoal
Copy link

semoal commented Dec 1, 2024

Describe the issue

|- ReferenceError: generateChallenge is not defined
    at Function.assign (<anonymous>)
    at file:///Users/x/Projects/x/node_modules/.pnpm/@simplewebauthn+server@12.0.0_encoding@0.1.13/node_modules/@simplewebauthn/server/esm/helpers/index.js?iitm=true:6:18
    at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:543:26)

Reproduction Steps

I'll create a repro project later

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

With v11.0.0 the same code worked fine.

Code Samples + WebAuthn Options and Responses

Dependencies

  • OS: (e.g. macOS 13.2)
  • Node version: v22.11.0
  • Browser: (e.g. Chrome 110)
  • Authenticator: (e.g. YubiKey 5, iPhone 12 @ iOS 16.3, 1Password browser extension 2.15.1)

SimpleWebAuthn Libraries

$ npm list --depth=0 | grep @simplewebauthn
├── @simplewebauthn/browser@12.0.0
├── @simplewebauthn/server@12.0.0
# ...

Additional context

@semoal
Copy link
Author

semoal commented Dec 1, 2024

Holy shit, after hours of debugging... it was sentry. Not sure what is doing under the hood, but literally broke the entire process, gonna open an issue there.

@semoal semoal closed this as completed Dec 1, 2024
@MasterKale
Copy link
Owner

Hello @semoal, how did you fix this issue? I'm experiencing this same issue now while trying to diagnose #678, which involves a project using Sentry, and am wondering how you worked around this.

@kentcdodds
Copy link

More info here: getsentry/sentry-javascript#12996

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

No branches or pull requests

3 participants