f-o-g / meteor-redux-form-example

A series of examples using meteor with redux-form
3 stars 2 forks source link

Update meteor 1.4 #1

Open lc3t35 opened 7 years ago

lc3t35 commented 7 years ago

Hi Alberto,

I've tryed to update to meteor 1.4, but I have some issuesmaybe with meteor-connect, I send you a PR from my forked repo (https://github.com/lc3t35/meteor-redux-form-example) branch update1.4

Here are the warning and errors

Warning: Failed prop type: Invalid prop `fields` of type `array` supplied to `SubmitValidationForm`, expected `object`.
    in SubmitValidationForm (created by Form(SubmitValidationForm))
    in Form(SubmitValidationForm) (created by Connect(Form(SubmitValidationForm)))
    in Connect(Form(SubmitValidationForm)) (created by ReduxForm)
    in ReduxForm (created by ConnectMeteor(ReduxForm))
    in PureRenderFilter (created by ConnectMeteor(ReduxForm))
    in ConnectMeteor(ReduxForm) (created by Connect(ConnectMeteor(ReduxForm)))
    in Connect(ConnectMeteor(ReduxForm)) (created by App)
    in div (created by App)
    in App (created by RouterContext)
    in div (created by Layout)
    in Layout (created by RouterContext)
    in RouterContext (created by Router)
    in Router
    in Providermodules.js:5173:9

Warning: Failed prop type: The prop `resetForm` is marked as required in `SubmitValidationForm`, but its value is `undefined`.
    in SubmitValidationForm (created by Form(SubmitValidationForm))
    in Form(SubmitValidationForm) (created by Connect(Form(SubmitValidationForm)))
    in Connect(Form(SubmitValidationForm)) (created by ReduxForm)
    in ReduxForm (created by ConnectMeteor(ReduxForm))
    in PureRenderFilter (created by ConnectMeteor(ReduxForm))
    in ConnectMeteor(ReduxForm) (created by Connect(ConnectMeteor(ReduxForm)))
    in Connect(ConnectMeteor(ReduxForm)) (created by App)
    in div (created by App)
    in App (created by RouterContext)
    in div (created by Layout)
    in Layout (created by RouterContext)
    in RouterContext (created by Router)
    in Router
    in Providermodules.js:5173:9

TypeError: username is undefined
app.js:290:1
NS_ERROR_NOT_CONNECTED: 
ddp-client.js:1380
Acentelles commented 7 years ago

Hi @lc3t35 I will test it tomorrow, but I believe that the problem is that the version you are using on your pull request of redux-form is 6.5.0 and not 4.2.0 as it was previously. Redux form has changed radically since we started using it and its API is totally different, too.

lc3t35 commented 7 years ago

Thank you, didn't noticed that as I upgraded with npm-check, i'll look at http://redux-form.com/6.5.0/docs/MigrationGuide.md/ ;)

lc3t35 commented 7 years ago

updated branch update1.4, but still some problem with username or password, submit ...

saamalam commented 6 years ago

http://localhost:3000/ coming blank. No console notifications etc.