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

[admin] TypeError: Cannot read properties of null (reading 'breakpoints') #80

Open
TBG-FR opened this issue Feb 13, 2023 · 0 comments
Open

Comments

@TBG-FR
Copy link

TBG-FR commented Feb 13, 2023

Starting the project "as is", without modifications to the admin module/part, I get a blank screen on http://localhost:3000/

react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at Button.js:48:22
    at c (useMediaQuery.js:19:50)
    at b (Button.js:47:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at fl (react-dom.production.min.js:237:175)
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at AppBar.js:78:22
    at c (useMediaQuery.js:19:50)
    at Z (AppBar.js:77:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at fl (react-dom.production.min.js:237:175)
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at Sidebar.js:36:22
    at c (useMediaQuery.js:19:50)
    at _ (Sidebar.js:35:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at fl (react-dom.production.min.js:237:175)
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at Dashboard.js:31:15
    at c (useMediaQuery.js:19:50)
    at Mt (Dashboard.js:30:22)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at fl (react-dom.production.min.js:237:175)
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at Button.js:48:22
    at c (useMediaQuery.js:19:50)
    at b (Button.js:47:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at AppBar.js:78:22
    at c (useMediaQuery.js:19:50)
    at Z (AppBar.js:77:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
cc @ react-dom.production.min.js:216
react-dom.production.min.js:216 TypeError: Cannot read properties of null (reading 'breakpoints')
    at Sidebar.js:36:22
    at c (useMediaQuery.js:19:50)
    at _ (Sidebar.js:35:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
cc @ react-dom.production.min.js:216
react-dom.production.min.js:123 Uncaught TypeError: Cannot read properties of null (reading 'breakpoints')
    at Button.js:48:22
    at c (useMediaQuery.js:19:50)
    at b (Button.js:47:20)
    at oi (react-dom.production.min.js:157:137)
    at Wc (react-dom.production.min.js:267:460)
    at kl (react-dom.production.min.js:250:347)
    at Sl (react-dom.production.min.js:250:278)
    at xl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115

I tried using the Dockerfile.dev under admin instead of Dockerfile (also editing the docker-compose.yml to fit the changes), and now I see a page with Network error when I try to login, but it's much better !

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

1 participant