You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run into: Could not find "store" in either the context or props of "Connect(t)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(t)".
#4
Open
dvliman opened this issue
Apr 10, 2020
· 2 comments
First of all, thank you for looking into this. This might not an appropriate place to ask the question but appreciate any pointer!
So I run into this:
Could not find "store" in either the context or props of "Connect(t)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(t)".
./node_modules/ra-data-json-server/node_modules/ra-core/esm/core/CoreAdminContext.js
Attempted import error: 'ReactReduxContext' is not exported from 'react-redux'.
this is most likely to be the case; ra-s3-input is written for an older version of react-admin
First of all, thank you for looking into this. This might not an appropriate place to ask the question but appreciate any pointer!
So I run into this:
which is pretty much the example in the README:
And the version I am using. Note: I ran
yarn upgrade --latest
; originally it didn't work without upgrading to the latest (transitive?) dependencies:I don't know much about react/redux but here are my debugging notes (if it helps):
https://github.com/FusionWorks/nestjs-crud-react-admin-boilerplate/blob/b26813c52efb78079042d935bf087f7557987347/admin-ui/src/Companies/index.js#L24
this example calls it just like what I am doing here
https://stackoverflow.com/questions/47652627/either-wrap-the-root-component-in-a-provider-or-explicitly-pass-store-as-a/47654352
this wraps with
<Provider store={store}>
but what store? no mention that
@fusionworks/ra-s3-input
needs (redux?) store?Another observation:
it extends from FunctionComponent
But FileUploader is just a component: https://github.com/FusionWorks/react-admin-s3-file-upload/blob/master/src/index.js#L11
tried downgrading react-admin to 2.9.2 (in admin/package.json); does not work
complain about RichTextInput (replaced to TextInput)
then complain about this:
this is most likely to be the case; ra-s3-input is written for an older version of react-admin
question: how to turn Component into FunctionalComponent?
https://github.com/mayteio/ra-aws-amplify/tree/23c58023fe3952a19344cb459c1eaafbbcdfe409/src/inputs
this is another implementation that upload to s3 as well; but you need to define schema (see required schema section)
this implements the functional component
I tried something like this:
but how does this work? https://github.com/PavelZX/React-Nest-blog/blob/337d5a8f085781824487fda795c16925c445e9c8/frontend/src/Company/index.js#L30
he uses react-admin ^3.2.0 and ra-s3-input ^0.1.4 (which is greater than ^2.9.2)
this project run into some error when I try to set it up - didn't attempt to debug to get it to run
The text was updated successfully, but these errors were encountered: