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.

Attempted import error: 'getDynamicStyles' is not exported from 'jss'

See original GitHub issue
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

My CI server just failed with the following error:

20:33:20.621
Failed to compile.
20:33:20.621
./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js
20:33:20.621
Attempted import error: 'getDynamicStyles' is not exported from 'jss'.
20:33:20.621
> Build error occurred
20:33:20.622
Error: > Build failed because of webpack errors
20:33:20.622
    at build (/zeit/60ebfceb/node_modules/next/dist/build/index.js:10:900)
20:33:20.665
error Command failed with exit code 1.

Using:

        "@material-ui/core": "^4.3.3",
        "@material-ui/icons": "^4.2.1",
        "@material-ui/styles": "^4.3.3",

Expected Behavior 🤔

Such error shouldn’t happen, it works fine on my computer which is using 4.9.0 for @material-ui/styles.

Steps to Reproduce 🕹

Unknown

Context 🔦

I believe a recent version has been released recently, it was working fine 2h ago, and I haven’t done any change material-ui related.

Your Environment 🌎

Tech Version
Material-UI @core 4.9.5
React 16.12.0
Browser Chrome latest
TypeScript 3.7.5
etc.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
Vadorequestcommented, Mar 15, 2020

Fix has been applied (commit has been reverted by author, and released). Closing.

https://github.com/cssinjs/jss/pull/1303

1reaction
ariarielcommented, Mar 15, 2020

I believe it is related to this: https://github.com/cssinjs/jss/pull/1303

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attempted import error: 'getDynamicStyles' is not exported ...
The issue is present in the latest release. I have searched the issues of this repository and believe that this is not a...
Read more >
'makeStyles' is not exported from '@material-ui/core/styles ...
I recently encountered this problem. This problem occurs when using the latest versions of Material UI. To solve you have to import makeStyles...
Read more >
attempted import error is not exported from - You.com
On upgrading the version of Ant Design to v4, one of the major breaking changes have been that Icon is no longer exported...
Read more >
cssinjs/Lobby - Gitter
I use JSS on separate file and I got this error TypeError: Object(. ... I'm trying to create a new function which I...
Read more >
MDBreact All imports are failing - Attempted import error: i
Just getting a bunch of errors of "Attempted import error: XXXX was not exported from mdbreact. It started off with the Modal component,...
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