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:
- Node.js 20.0.0:
- No issues when running locally with
npm link.
- Issues after publishing the package and installing it locally.
- 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.