TypeError: instance.render is not a function
See original GitHub issueSolution
See #comment
Bug Report
Steps
This is an error related to using the latest version 0.80.0 that is not present in 0.79.0. During the build process with a typical webpack build you get the error: TypeError: instance.render is not a function
Expected Result
A build as it was in 0.79.0, which is completely stable with the exact same build process.
Actual Result
The actual result that happened 💣

Version
0.80.0 Webpack 4 Build is essentially the same as create-react-app, but with webpack 4 and decorators. Babel is using babel core 7.0.0-beta.48
Here is the babel pipeline:
"@babel/core": "7.0.0-beta.48",
"@babel/plugin-proposal-decorators": "7.0.0-beta.48",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.48",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.48",
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.48",
"@babel/plugin-transform-classes": "7.0.0-beta.48",
"@babel/plugin-transform-destructuring": "7.0.0-beta.48",
"@babel/plugin-transform-react-constant-elements": "7.0.0-beta.48",
"@babel/plugin-transform-react-display-name": "7.0.0-beta.48",
"@babel/plugin-transform-regenerator": "7.0.0-beta.48",
"@babel/plugin-transform-runtime": "7.0.0-beta.48",
"@babel/preset-env": "7.0.0-beta.48",
"@babel/preset-flow": "7.0.0-beta.48",
"@babel/preset-react": "7.0.0-beta.48",
"babel-plugin-macros": "2.2.1",
"babel-plugin-transform-dynamic-import": "2.0.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.13"
configured like this:
require('babel-plugin-macros'),
require('@babel/plugin-transform-destructuring').default,
[require('@babel/plugin-proposal-decorators'), { legacy: true }],
[require('@babel/plugin-proposal-class-properties').default,{loose: true}],
[require('@babel/plugin-proposal-object-rest-spread').default,{useBuiltIns: true}],
[require('@babel/plugin-transform-runtime').default,{
helpers: false,
polyfill: false,
regenerator: true}],
require('@babel/plugin-syntax-dynamic-import').default
Stacktrace
Uncaught TypeError: instance.render is not a function
at finishClassComponent (react-dom.development.js:13085)
at updateClassComponent (react-dom.development.js:13047)
at beginWork (react-dom.development.js:13715)
at performUnitOfWork (react-dom.development.js:15741)
at workLoop (react-dom.development.js:15780)
at HTMLUnknownElement.callCallback (react-dom.development.js:100)
at Object.invokeGuardedCallbackDev (react-dom.development.js:138)
at invokeGuardedCallback (react-dom.development.js:187)
at replayUnitOfWork (react-dom.development.js:15194)
at renderRoot (react-dom.development.js:15840)
at performWorkOnRoot (react-dom.development.js:16437)
at performWork (react-dom.development.js:16358)
at performSyncWork (react-dom.development.js:16330)
at requestWork (react-dom.development.js:16230)
at scheduleWork$1 (react-dom.development.js:16096)
at scheduleRootUpdate (react-dom.development.js:16663)
at updateContainerAtExpirationTime (react-dom.development.js:16690)
at updateContainer (react-dom.development.js:16717)
at ReactRoot.push../node_modules/react-dom/cjs/react-dom.development.js.ReactRoot.render (react-dom.development.js:17000)
at react-dom.development.js:17140
at unbatchedUpdates (react-dom.development.js:16557)
at legacyRenderSubtreeIntoContainer (react-dom.development.js:17136)
at Object.render (react-dom.development.js:17195)
at Object../src/index.js (index.js:27)
at __webpack_require__ (bootstrap:767)
at fn (bootstrap:141)
at Object.0 (validator-list.js:81)
at __webpack_require__ (bootstrap:767)
at checkDeferredModules (bootstrap:43)
at Array.webpackJsonpCallback [as push] (bootstrap:30)
at main.chunk.js:1
Issue Analytics
- State:
- Created 5 years ago
- Comments:24 (10 by maintainers)
Top Results From Across the Web
ReactJS giving inst.render is not a function error
TypeError: instance.render is not a function error comes when you don't have a render() function in your React component.
Read more >instance.render is not a function in react-dom.development.js ...
Getting below error while using {this.props.children} in component file. TypeError: instance.render is not a function finishClassComponent
Read more >render is not a function????? (Example) - Treehouse
render is not a function ????? I am try Use Context API but having this Strange error. Context/index.js. const AmazonContext = React.
Read more >ReactJS giving inst.render is not a function error-Reactjs
TypeError : instance.render is not a function error comes when you don't have a render() function in your React component. Ish 318.
Read more >React Context API error - instance.render is not a function
React Context API error - TypeError: instance.render is not a function. Hi guys. Has anyone seen this error and know how to fix...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The problem is caused by the recent release of
@babel@7.0.0-beta.48, the immediately fix is below.yarnyarn startPR with deps updates is comming.
Released in
semantic-ui-react@0.80.2. Please verify the fix and we can close this issue.