skip to Main Content

I am currently working on a react, working perfectly in local, the CSS seems to be broken in production, even when using the “normal” production deployment tuto made by react here

local

remote

node, npm and yarn versions are the same locally and remotly … remote is debian, local is mac

I do not understand …

Anyone had the same issue maybe ? 🙂

2

Answers


  1. Chosen as BEST ANSWER

    Found my answer ;) duplicate library, if anyone has

    in package.json, if you declare @material-ui/core, you do not need to import @material-ui/styles


  2. Have you checked in debug console from browser whether CSS files are loaded or not? Also by normal deployment do you mean production build served locally or remotely?
    Please check network request made from console, sources and other part too.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search