Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'useGetIdentity' is not exported from 'ra-core' #5296

Closed
datakurre opened this issue Sep 24, 2020 · 2 comments
Closed

'useGetIdentity' is not exported from 'ra-core' #5296

datakurre opened this issue Sep 24, 2020 · 2 comments

Comments

@datakurre
Copy link

TypeScript issues breaking code with 3.9.0-beta.1 were requested: #4505 (comment)

After upgrading from 3.8.x to 3.9.0-beta.1 and removing local types/react-admin stub, I got

./node_modules/ra-ui-materialui/esm/layout/UserMenu.js
Attempted import error: 'useGetIdentity' is not exported from 'ra-core'.
@djhi
Copy link
Contributor

djhi commented Sep 24, 2020

Can you please check which version of ra-core has been installed because useGetIdentity is definitely exported: https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/auth/index.ts#L25

@datakurre
Copy link
Author

@djhi Thanks. That was it (ra-core 3.8.5). I was too excited only upgrade react-admin and another pin kept that at the old version. 🙈

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

No branches or pull requests

2 participants