Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NPM library of account-ui is unusable (@keycloak/keycloak-account-ui version 25.0.1) #31299

@gdelbos

Description

@gdelbos

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

account/ui

Describe the bug

The current library is using main.tsx to export the object.
The types are correctly handled and we can create the project and import the expected components/functions/etc.

However, when we want to build the project, we are encountering the following issue:
"Header" is not exported by "node_modules/.pnpm/@[email protected]/node_modules/@keycloak/keycloak-account-ui/lib/keycloak-account-ui.js"

This has been corrected with the PR #30645.
However, this correction is not present in the release 25.0.1.

See https://github.com/keycloak/keycloak/blob/25.0.1/js/apps/account-ui/vite.config.ts
You can also directly download the NPM artifact and check its content.
https://registry.npmjs.org/@keycloak/keycloak-account-ui/-/keycloak-account-ui-25.0.1.tgz

Version

25.0.1

Regression

  • The issue is a regression

Expected behavior

Being able to build a project using this library

Actual behavior

Cannot build a project using this library

How to Reproduce?

  • Create a project
  • Add the library @keycloak/keycloak-account-ui with the version 25.0.1
  • Import one of the component exported by the library
  • Build

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions