Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Problem Code #32

Open
erickvictor opened this issue May 4, 2018 · 10 comments
Open

Problem Code #32

erickvictor opened this issue May 4, 2018 · 10 comments

Comments

@erickvictor
Copy link

erickvictor commented May 4, 2018

'./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
Copy link

almahdi commented Jun 8, 2018

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
Copy link
Owner

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

@almahdi
Copy link

almahdi commented Jun 10, 2018

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

@afilp
Copy link

afilp commented Jul 19, 2018

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

@sidferreira
Copy link
Owner

@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
Copy link

almahdi commented Jul 20, 2018

@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
Copy link
Owner

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

@afilp
Copy link

afilp commented Jul 21, 2018

@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
Copy link

alfonsodev commented Sep 3, 2018

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
Copy link

javim89 commented Sep 6, 2018

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

Regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants