-
Notifications
You must be signed in to change notification settings - Fork 920
Description
Since the release of Babel 6 the package doesn't work with webpack example.
I receive the following error on my browser
Error while rendering "Components.HelloWorld" to "react1": Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at invariant (Script Document [2]:20215:15) -> throw error;
at instantiateReactComponent (Script Document [2]:18233:127)
at Script Document [2]:13840:31
at Mixin.perform (Script Document [2]:17235:20)
at renderToString (Script Document [2]:13839:24)
at newFn (Script Document [2]:17611:17)
at Script Document [8] [temp]:1:7
Line: 20215
Column:15
My component name is apparently HelloWorld.
I have added inside .babelrc the following
{
"presets": ["es2015", "react"]
}
Among others I have included the following packages
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"babel-core": "^6.1.20",
"babel-loader": "^6.1.0"
My workaround is to work with latest babel 5.0 version where everything work fine