-
Notifications
You must be signed in to change notification settings - Fork 136
Invariant Violation with Webpack + Babel #200
Comments
This works for me (at least the form renders). I'm using Webpack with the babel-loader.
...
module: {
loaders: [
{
//tell webpack to use jsx-loader for all *.jsx files
test: /\.jsx$/,
loader: 'jsx-loader?insertPragma=React.DOM&harmony'
},
{
test: /\.jsx$/, exclude: /node_modules/, loader: "babel-loader"
}
]
},
...
I just started a basic run through setup of a react project. It's just a log for me how I moved and I'm not done yet, because I only continue when I have some spare time. But maybe it helps: |
Hi, |
Ah. Versioning it was. Updated to 0.14 RC1 and that fixed it. Thank you so much. |
I'm having problems with tcomb-form 0.6.6 wanting to use React 0.14.x, but only when I use Here's how to reproduce
output npm install:
As you see But when using tcomb-form 0.6.3 it works as I think it should:
Output:
|
Hi @Nextminds! |
I'm getting the following error when I run my app:
Right now, I'm just trying to get the 'working example' from the docs to work properly with my setup. I'm currently using Babel and Webpack, which I believe is the root cause of the problem. I've tried removing the
<Form ref="form" type={Person} />
and everything works correctly, so I know that the problem lies somewhere in my configuration conflicting with tcomb-form.I'd also be happy to provide configs or files for anything else if useful. Thanks in advance.
The text was updated successfully, but these errors were encountered: