dash_mantine_component works fine when there’s an internet connection.
However, when I try to use dash_mantine_components in an offline environment, there aren’t any errors, but nothing is displayed.
I’m using dash_mantine_component in my company’s PC that have no Internet connection (for security purpose) and it worked without any css. I just used whl file that I downloaded from pypi then install with Anaconda Prompt.
Im using python3.11 and my dash_mantine_components version is 0.12.1.
In the __init__.py file of dash_mantine_components , it seems that you need to import the following files from an external source using _js_dist.extend .
import dash_mantine_components as dmc
from dash import Dash
app = Dash(__name__)
app.layout = dmc.Alert(
"Hi from Dash Mantine Components. You can create some great looking dashboards using me!",
title="Welcome!",
color="violet",
)
if __name__ == "__main__":
app.run_server()
However, nothing works and the following message appears in the console through Chrome F12 debuger.
TypeError: Object.fromEntries is not a function
at dash_mantine_components.v0_12_1m1692244112.js:2
at Jt (dash_mantine_components.v0_12_1m1692244112.js:2)
at we (react-dom@16.v2_14_1m1700534637.14.0.min.js:84)
at nh (react-dom@16.v2_14_1m1700534637.14.0.min.js:96)
at zj (react-dom@16.v2_14_1m1700534637.14.0.min.js:230)
at Th (react-dom@16.v2_14_1m1700534637.14.0.min.js:152)
at tj (react-dom@16.v2_14_1m1700534637.14.0.min.js:152)
at Te (react-dom@16.v2_14_1m1700534637.14.0.min.js:146)
at react-dom@16.v2_14_1m1700534637.14.0.min.js:61
at unstable_runWithPriority (react@16.v2_14_1m1700534637.14.0.min.js:25)
ri @ dash_renderer.v2_14_1m1700534637.min.js:2