Skip to content

Production build error - p.update(...) is undefined - makeStyles/sidebar.js #4225

@mjroeleveld

Description

@mjroeleveld

What you were expecting:
To have my local build work in production. I deleted node_modules and package-lock.json to have an identical environment but to no help.

What happened instead:
A broken production build. It prevents my from logging in. Shows this error when the url changes, leaving me with a white screen.

Related code:
I have a very minimal install with almost no customization.

Other information:

TypeError: "p.update(...) is undefined"
    nn makeStyles.js:119
    a makeStyles.js:234
    a makeStyles.js:187
    a makeStyles.js:226
    B Sidebar.js:110
    React 6
    unstable_runWithPriority scheduler.production.min.js:270
    React 5
    a hooks.js:17
    u CoreAdminRouter.js:210
    s CoreAdminRouter.js:139
    s CoreAdminRouter.js:69
    a CoreAdminRouter.js:21
react-dom.production.min.js:4636
    React 5
    unstable_runWithPriority scheduler.production.min.js:270
    React 4
    unstable_runWithPriority scheduler.production.min.js:270
    React 5
    a hooks.js:17
    u CoreAdminRouter.js:210
    s CoreAdminRouter.js:139
    s CoreAdminRouter.js:69
    a CoreAdminRouter.js:21

inspector shows me it's related to this:

    var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends({
      link: true
    }, options));
    dynamicSheet.update(props).attach();

Environment

    "jsoneditor": "^7.0.4",
    "jsoneditor-react": "^1.0.1",
    "jwt-decode": "^2.2.0",
    "lodash": "^4.17.15",
    "moment": "^2.24.0",
    "prop-types": "^15.7.2",
    "query-string": "^6.5.0",
    "ra-input-markdown": "^1.1.1",
    "ra-input-rich-text": "^3.1.0",
    "react": "^16.9.0",
    "react-admin": "^3.1.1",
    "react-dom": "^16.9.0",
    "react-markdown": "^4.1.0",
    "react-mde": "^7.6.2",
    "react-scripts": "3.0.1",
    "react-transition-group": "^4.3.0",
    "showdown": "^1.9.0"
  • Browser:
    Latest Firefox & Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions