Uncaught TypeError: Cannot read property 'reducersFor' of undefined

Description

This problem seems to crop up seemingly at random in the JavaScript console:

(I have line-numbers in the big bundle file rather than in source files because at present I have to run with the released version of Stripes Core, due to STRIPES-218.)

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike TaylorFebruary 27, 2017 at 12:47 PM

Well, I don't know why the stale copy of react-redux in stripes-connect was being used; but re-running yarn install in stripes-connect makes this problem go away. I will update the troubleshooting guide accordingly.

Mike TaylorFebruary 27, 2017 at 12:36 PM

Ha, but stripes-connect/node_modules/redux-crud/package.json has "version": "1.0.1". But why is that being used instead of the one in stripes-sample-platform?

Mike TaylorFebruary 27, 2017 at 12:30 PM

Yet stripes-sample-platform/node_modules/redux-crud/package.json says "version": "3.0.4".

Mike TaylorFebruary 27, 2017 at 12:29 PM

It's as though I am still linking with a v1.x redux-crud, though the code has been updated to use the v3.x API.

Mike TaylorFebruary 27, 2017 at 12:28 PM

The problem is in the line

where crud is evidently an object but crud.List is undefined. The problem seems to relate to commit 87e1f9b05744ee36404f324dbd1de4969ec6dcc6 ("Upgrades redux-crud dep from v1 to v3"): see https://github.com/folio-org/stripes-connect/commit/87e1f9b05744ee36404f324dbd1de4969ec6dcc6

Done

Details

Assignee

Reporter

Labels

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 27, 2017 at 12:24 PM
Updated February 27, 2017 at 1:50 PM
Resolved February 27, 2017 at 12:47 PM
TestRail: Cases
TestRail: Runs