bigbasket / ra-components Goto Github PK
View Code? Open in Web Editor NEWOpen source components for react-admin
Home Page: http://tech.bigbasket.com
License: MIT License
Open source components for react-admin
Home Page: http://tech.bigbasket.com
License: MIT License
I'm getting an undef error for theme.breakpoints.only("xs") - theme.breakpoints is undefined. I've my Admin is configured like this:
const myLayout = () => <Layout menu={TreeMenu} />;
<ThemeProvider theme={myTheme}>
<Admin
dataProvider={props.dataProvider}
authProvider={props.authProvider}
theme={myTheme}
layout={myLayout}
And I get an error:
index.js:1 MUI: The `styles` argument provided is invalid.
You are providing a function without a theme in the context.
One of the parent elements needs to use a ThemeProvider.
at TreeMenu (http://localhost:8088/static/js/0.chunk.js:13537:25)
at div
----
index.js:689 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'only')
at push../node_modules/@bb-tech/ra-components/dist/index.js.styles.makeStyles.name (index.js:689:1)
Can't resolve 'react-json-tree' in \node_modules@bb-tech\ra-components\dist
Instaleld via yarn
ALL
so that JSON is prepared using all sources in the record.I'm using "@bb-tech/ra-components": "^1.0.14",
but import {TreeMenu} from "@bb-tech/ra-components";
resulting:
Attempted import error: 'TreeMenu' is not exported from '@bb-tech/ra-components'
The @mui/styles page says:
@mui/styles was deprecated with the release of MUI Core v5 in late 2021. It depended on JSS as a styling solution, which is no longer used in @mui/material.
@mui/styles is not compatible with React.StrictMode or React 18, and it will not be updated.
This documentation remains here for those working on legacy projects, but we strongly discourage you from using @mui/styles when creating a new app with Material UI—you will face unresolvable dependency issues.
Please use @mui/system instead.
Would be great to see ra-components migrated to @mui/system!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.