question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
adridcommented, Dec 28, 2019

I was just going through the tutorial from the empty app and I have the same. seems there is a bug on the material-ui. This is fixing the issue for me for now

0reactions
ThieryMichelcommented, Jan 3, 2020

Considered resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App production build runtime error: Cannot read ...
If you're building a Create React App and don't want to eject the application, the following steps are how I updated my webpack...
Read more >
ReferenceError: reference to undefined property "x" - JavaScript
The JavaScript warning "reference to undefined property" occurs when a script attempted to access an object property which doesn't exist.
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >
How to Prevent the Error: Cannot Read Property '0' of Undefined
Errors and crashes in software development can be frustrating, especially if they're difficult to debug. In JavaScript, errors relating to ...
Read more >
JavaScript Tips and Tricks: The Two Flavors of Undefined...
In JavaScript, "undefined" means two distinctly different things: A ... produce runtime errors for unassigned properties on built-in classes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found