emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience

Home Page:https://www.dash-extensions.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello world fails when dash_mantine_components is installed

krishvk opened this issue · comments

When I install the latest version of the dash_mantine_components module, my existing app fails with the following message.

Traceback (most recent call last):
  File "./bla.py", line 14, in <module>
    _app = Dash()
  File ".../dash_extensions/enrich.py", line 1289, in __init__
    LogTransform(),
  File ".../dash_extensions/enrich.py", line 629, in __init__
    log_config = setup_notifications_log_config(self.components)
  File ".../dash_extensions/enrich.py", line 561, in setup_notifications_log_config
    layout.append(dmc.NotificationsProvider(id="notifications_provider"))
  File ".../dash/development/base_component.py", line 425, in wrapper
    return func(*args, **kwargs)
  File ".../dash_mantine_components/NotificationsProvider.py", line 53, in __init__
    super(NotificationsProvider, self).__init__(children=children, **args)
  File ".../dash/development/base_component.py", line 133, in __init__
    raise TypeError(
TypeError: The `dash_mantine_components.NotificationsProvider` component (version 0.11.0) with the ID "notifications_provider" received an unexpected keyword argument: `id`
Allowed arguments: autoClose, children, containerWidth, limit, notificationMaxHeight, position, transitionDuration, zIndex

Code

from dash_extensions.enrich import Dash

if __name__ == '__main__':
    _app = Dash()

It looks like the LogTransform extension is not compatible with the latest version of dash_mantine_componenets

Versions used

dash==2.7.1
dash-bootstrap-components==1.1.0
dash-core-components==2.0.0
dash-daq==0.5.0
dash-extensions==0.1.8
dash-html-components==2.0.0
dash-iconify==0.1.2
dash-mantine-components==0.11.0
dash-table==5.0.0

Please retry with version 0.1.9, this version should resolve the issue.