contentacms / contenta_react

Demo application written in React
http://react.contentacms.io/
38 stars 18 forks source link

TypeError: Cannot read property 'apply' of undefined #1

Closed spleshka closed 7 years ago

spleshka commented 7 years ago

Hey, really great initiative, thanks! :)

Trying to install the project locally (inside of clean docker env). Got the first when was trying to access the page in browser:

TypeError: Cannot read property 'apply' of undefined
(anonymous function)

  29 |   return function () {
  30 |     return rest.reduceRight(function (composed, f) {
  31 |       return f(composed);
> 32 |     }, last.apply(undefined, arguments));
  33 |   };
  34 | }
  35 | 

It seems to have the issues with this lines in index.js:

  compose(
    applyMiddleware(thunkMiddleware),
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
  ),

If I remove this line then the app renders properly:

window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),

Is there a step I've missed to configure the application? Seems like it :)

spleshka commented 7 years ago

I think this PR covers this issue https://github.com/contentacms/contenta_react/pull/3