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

[Bug]: DocumentTitleCard.base is not exposed via package exports #33819

Open
2 tasks done
TheLarkInn opened this issue Feb 11, 2025 · 0 comments
Open
2 tasks done

[Bug]: DocumentTitleCard.base is not exposed via package exports #33819

TheLarkInn opened this issue Feb 11, 2025 · 0 comments

Comments

@TheLarkInn
Copy link
Member

Package

react

Package version

8.121.11

React version

N/A

Environment

N/A

Current Behavior

If you convert your typescript moduleResolution to bundler from node, the following import:

import type { DocumentCardTitleBase } from '@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.base';

will error. Inspecting further it looks to be due to the fact that this coponents module exports is not defined in the package.json. It needs to do so.

Expected Behavior

import type { DocumentCardTitleBase } from '@fluentui/react/lib/components/DocumentCard/DocumentCardTitle.base';

to work when moduleResolution TS config is set to "bundler".

Reproduction

https://codepen.io/TheLarkInn/pen/vEYYWVa

Steps to reproduce

Set moduleResolution: bundler

Try to import DocumentCardTitle.base

See typescript unable to find the export.

Are you reporting an Accessibility issue?

no

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants