Throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); subClass.prototype = Object.create(superClass && superClass.prototypeconstructor:. Uncaught TypeError: Super expression must either be null or a function, not undefined If yes, then this post is for you! Lets look at the culprits (that I have come across so far) that cause this.
This repository has been archived by the owner. It is now read-only.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upComments
commented Oct 11, 2016 • edited
edited
[Enter steps to reproduce below:]
Atom Version: 1.11.0 Electron Version: 0.37.8 System: Mac OS X 10.12 Thrown From: nuclide package, v0.175.0 Stack TraceUncaught TypeError: Super expression must either be null or a function, not undefined CommandsConfigInstalled Packages |
commented Oct 11, 2016
Seems similar to #780. Just as there, the missing super class is React.PureComponent. It seems as if an old version of React was loaded. If the issue persists after Atom restart, deleting the ~/.atom/compile_cache` seems like the next logical step to try. |
commented Oct 12, 2016
Yeah, it's a duplicate: renaming ~/.atom worked but reinstalling the packages was an overhead. |
commented Oct 12, 2016
Actually renaming didn't work specifically it looks at OpenFilesListComponent.js:19 node_modules/rxjs/bundles/Rx.min.js:50 any idea how to fix that? |
commented Oct 12, 2016 • edited
edited
@jgebhardt, do you have any idea why wouldn't React.PureComponent be available?Also, @snavien, could you please open Developer Tools in Atom (Cmd-Alt-i), in the console type (separately): And tell what the result is? |
commented Oct 13, 2016
My only guess would be that one of the third-party package might be loading an older version of React. I'm also curious to see the values mentioned above. |
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.