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

DefaultButton class not available from Fabric UI in this version #12

Open
CodingSinceThe80s opened this issue Apr 16, 2017 · 0 comments

Comments

@CodingSinceThe80s
Copy link

Category

[ x ] Question
[ ] Bug
[ ] Enhancement

First off thanks for creating this sample! I come from the .NET world and have been experimenting with this sample as part of my "conversion". I've noticed that the included office-ui-fabric-react version does not support some components, for instance DefaultButton
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';

I have tried doing npm update office-ui-fabric-react --save in the project and I am getting a whole load of compilation errors like this one when running gulp:
Error - typescript - node_modules\office-ui-fabric-react\lib\common\BaseComponent.d.ts(29,24): error TS1005: '=' expected.

As far as I can tell it's trying to compile the new office-ui-fabric-react library and not succeeding. Why would that be? Is there an incompatibility between webpack/react and the newest office-ui-fabric-react version? If so how could I work around this? I have only just begun to understand the connection between webpack and typescript and babel and whatnot so any conceptual help is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant