Skip to content

AuthProvider Not Found Error When Using oidc-react with Node.js 20.3.0  #1089

@jobyjames1

Description

@jobyjames1

I am encountering an issue when using the oidc-react library with Node.js 20.3.0 in a published package. The error occurs during runtime with the following message:

SyntaxError: The requested module '/node_modules/.pnpm/oidc-react@2.1.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/oidc-react/build/src/index.js?v=a216d472' does not provide an export named 'AuthProvider'

Key Observations:

  1. Node.js 20.0.0:
    • No issues when running locally with npm link.
    • Issues after publishing the package and installing it locally.
  2. Node.js 20.3.0:
    • The error consistently occurs when using the published package.
    • The issue can also be reproduced locally after upgrading to Node.js 20.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions