microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
17.75k stars 2.65k forks source link

[Bug]: Module not found: Error: Package path ./lib-amd is not exported from package #31224

Closed mrdrdocs closed 2 weeks ago

mrdrdocs commented 2 weeks ago

Library

React Northstar / v0 (@fluentui/react-northstar)

System Info

Currently, we are using the version of '@fluentui/react": "^8.41.2'. The npm run build is giving the below error while generating the production build.
Module not found: Error: Package path ./lib-amd is not exported from package.

Any inputs will be helpful to fix the issue.

Are you reporting Accessibility issue?

None

Reproduction

Sure

Bug Description

Actual Behavior

fill this out Package not found

Expected Behavior

fill this out

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

layershifter commented 2 weeks ago

Imports from @fluentui/react/lib-amd are not supported:

I suggest to fix imports and avoid /lib-amd. That's similar to https://github.com/microsoft/fluentui/issues/31163#issuecomment-2075015516.