Steams / ra-data-hasura-graphql

React-admin data provider for Hasura GraphQL endpoints
MIT License
211 stars 33 forks source link

"Unknown resource undefined." #52

Open haf opened 4 years ago

haf commented 4 years ago

Following the quickstart with a new Hasura instance gives an error message like this, for me:

"Error: Unknown resource undefined."

image

The stacktrace doesn't contain any information about how to solve it. I haven't specified an "undefined" value anywhere. Commenting out everything inside <Admin ...> ... </Admin> doesn't solve the problem. The linked line of code is compressed; there are no source maps distributed with this package.

Versions


react-admin@^3.7.0:
  version "3.7.0"
  resolved "https://registry.yarnpkg.com/react-admin/-/react-admin-3.7.0.tgz#627ade577d21a2a85c4cabfccc31f4d31ec5aef6"
  integrity sha512-Wuo7U/ui4rPMY0JF9/gpRWPCf/qi/sIZPeta9lf8DM0WQVtEzP2EXP6iKC+gi4lDiww5hlSUCP+X+cHkl9hwSw==
  dependencies:
    "@material-ui/core" "^4.3.3"
    "@material-ui/icons" "^4.2.1"
    "@material-ui/styles" "^4.3.3"
    connected-react-router "^6.5.2"
    final-form "^4.18.5"
    final-form-arrays "^3.0.1"
    ra-core "^3.7.0"
    ra-i18n-polyglot "^3.7.0"
    ra-language-english "^3.7.0"
    ra-ui-materialui "^3.7.0"
    react-final-form "^6.3.3"
    react-final-form-arrays "^3.1.1"
    react-redux "^7.1.0"
    react-router "^5.1.0"
    react-router-dom "^5.1.0"
    redux "^3.7.2 || ^4.0.3"
    redux-saga "^1.0.0"
davidhousedev commented 4 years ago

Might be helpful: https://github.com/Steams/ra-data-hasura-graphql/issues/6