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

Error in Dash2.0 solution 4: need MantineProvider to for mantine components. #59

Closed
delale opened this issue Jul 3, 2024 · 1 comment

Comments

@delale
Copy link

delale commented Jul 3, 2024

As explained in the dash-mantine-components Getting Started page, the app needs to be wrapped around a dmc.MantineProvider, otherwise an error is thrown (only in debug mode) and the alert is not visible.
Proposed fix:
Change line 21 of Good_to_Know/Dash2.0/Exercises/solution-4.py from

app.layout = dbc.Container([mytitle, myalert, mygraph, dropdown])

to

app.layout = dmc.MantineProvider([mytitle, myalert, mygraph, dropdown])
@Coding-with-Adam
Copy link
Owner

Thank you @delale . I just made the update on line 21 🙏🏻

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

2 participants