Open dvliman opened 4 years ago
Same issue here with @fusionworks/ra-s3-input@0.1.6 react-admin@3.9.4
yarn list ra-core ├─ @fusionworks/ra-s3-input@0.1.6 │ └─ ra-core@2.9.9 └─ ra-core@3.9.4
seems to be ra-core mismatches?
Hi all. Are there any solutions to this?
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:
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