Open erickvictor opened 6 years ago
Are you using the new react-admin? I know this issue happens on the new react-admin, to use this plugin you must use admin-on-rest.
@almahdi I'm with less time than should, but I want to take some time to update it to the new admin...
@sidferreira I'm working on it since I need it for a project. Once I'm done I shall submit a PR.
@almahdi Did you manage to complete this? We are also using the latest react-admin
. Thanks!
@afilp @almahdi Hey guys, deeply sorry for not replying. I'm very limited in my free time ATM, also I'm not using in my company anymore.
I do need to take a time and kinda fully update it to react-admin
.
If someone wants to take over it, I have no problems on that.
@afilp @sidferreira I have copied over the sources and modified them to work with my project. So yeah I got it working and its working perfectly. However, I got busy with the project.
I will try to make some time this week to send a pull request.
@almahdi feel free to email me too, I'll try to get some time to work on it
@sidferreira Thanks a lot for trying to find some time to work on this package! Is it possible that you also update it to support react-admin
instead of admin-on-rest
? (i.e. support the latest react-admin
package) Thanks again!
Hi @almahdi , I'm glad to read that you go it working, do you have your changes uploaded to your fork ? it would be nice to share them so we don't duplicate efforts. thank you !
Hi @almahdi , I have the same problem and i can´t solve it. How did you resolve it?
Regards,
'./reference' does not contain an export named 'AUTH_CHECK'.
import React from 'react'; import { Admin, Resource } from 'admin-on-rest'; import { RestClient } from 'aor-firebase-client'; import { PostList } from './posts';
const firebaseConfig = { apiKey: "", authDomain: "", databaseURL: "", storageBucket: "", messagingSenderId: "" };
const clientOptions = { timestampFieldNames: { createdAt: 'createdAt', updatedAt: 'updatedAt' }, trackedResources: { name: 'posts', // The name reference to be used in all other places in AOR path: 'blog', // The path in the database. If missing will use the name public: true, uploadFields: [] // The string name of the field } // A single string assumes path and name as equal, non private and without upload fields }
const App = () => ( < Admin restClient={RestClient(clientOptions)} >
);
export default App;