React Admin displays very messed up

前端 未结 2 1495
不知归路
不知归路 2021-01-12 18:10

My RA project renders fine when deploying locally, however, when I copy my build directory to an S3 bucket for deployment, it renders all messed up. Sometimes it works, but

2条回答
  •  伪装坚强ぢ
    2021-01-12 18:13

    Thanks so much @Kmaschta saved me hours of searching.

    I was not only getting the issue shown above... but when I hit the chrome refresh, the application would reload on the far left of the browser with no means of getting there.

    I looked at the react-admin issue above react-admin 1782 which was an issue with the dependency given in package.json and internal @material-ui dependency of react-admin

    I am editing my answer to show the dependencies with latest versions due to @material-ui 12621 :

    @material-ui/core": "1.5.1",

    "@material-ui/icons": "1.1.0",

    "react-admin": "2.2.3",

    "react": "16.4.2",

    "react-dom": "16.4.2"

提交回复
热议问题