-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TypeError: Cannot read properties of undefined (reading 'top') #9275
Comments
I've cloned your repo and tried both |
Are you suggesting it's an issue with |
Are you sure it's failing for you? (Delete node_modules and run |
Apparently I committed the workaround to that repo. I just removed it and now if you pull the latest, the issue can be reproduced. |
@mischnic Is there any update you can provide here? |
@mischnic is anybody looking into this bug? |
I can reproduce it now. This does seem like a Parcel bug, but do note that upgrading fluentui also happens to fix it (by coincidence at least in your reproduction) |
🐛 bug report
Importing and using some components from the FluentUI component library result in the app crashing as described in this issue. A Microsoft MVP Hotell replied to that issue suggesting
it has to do something with how parcel bundles things
.🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Adding a reference to
PrimaryButton
should render aPrimaryButton
😯 Current Behavior
Adding a reference to
PrimaryButton
causes the app to crash with aTypeError
React Crash Details
💁 Possible Solution
🔦 Context
I was just starting a React app that was using Fluent UI and as soon as I started building the application layout and added a the top navigation the app started crashing.
💻 Code Sample
fluentui-button-issue
🌍 Your Environment
The text was updated successfully, but these errors were encountered: