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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluent "lib-commonjs" export from fabric "lib" #12464
Comments
@itslooklike Are you trying to use this PrimaryButton? https://developer.microsoft.com/en-us/fluentui#/controls/web/button or this one? https://fluentsite.z22.web.core.windows.net/components/button/definition |
@aneeshack4 to be honest, I don't know which button I'm trying to use https://github.com/microsoft/fluentui#integrating-in-your-project |
@itslooklike I believe that used to say: |
@itslooklike Actually wait why don't use |
@aneeshack4 i need use i create a codesanbox, if it can help https://codesandbox.io/s/fluent-cjcm4 |
well, i solve my problem, by use |
@itslooklike Glad you were able to fix the problem. I'm not sure if the documentation stating the |
This is interesting--the checked in code using |
This was fixed at some point in the past year by adding a postprocessing step. If anyone notices it break again, feel free to file a new issue. |
Hello 馃憢
i use
import { PrimaryButton } from '@fluentui/react/lib-commonjs/Button';
in nextjsand got error
SyntaxError: Unexpected token 'export'
i open
node_modules/@fluentui/react/lib-commonjs/Button.js
and saw, what hi requireoffice-ui-fabric-react/lib/Button
(lib
notlib-commonjs
)is it wrong export? (i check only
PrimaryButton
component, maybe this problem in another components too)Environment Information
Priorities and help requested:
Are you willing to submit a PR to fix? (No)
Requested priority: (Normal)
The text was updated successfully, but these errors were encountered: