sidferreira / aor-firebase-client

Firebase client for Admin on Rest
MIT License
57 stars 29 forks source link

Problem Code #32

Open erickvictor opened 6 years ago

erickvictor commented 6 years ago

'./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)} >

< /Admin>

);

export default App;

almahdi commented 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.

sidferreira commented 6 years ago

@almahdi I'm with less time than should, but I want to take some time to update it to the new admin...

almahdi commented 6 years ago

@sidferreira I'm working on it since I need it for a project. Once I'm done I shall submit a PR.

afilp commented 6 years ago

@almahdi Did you manage to complete this? We are also using the latest react-admin. Thanks!

sidferreira commented 6 years ago

@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.

almahdi commented 6 years ago

@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.

sidferreira commented 6 years ago

@almahdi feel free to email me too, I'll try to get some time to work on it

afilp commented 6 years ago

@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!

alfonsodev commented 6 years ago

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 !

javim89 commented 6 years ago

Hi @almahdi , I have the same problem and i can´t solve it. How did you resolve it?

Regards,