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

[BUG] - Not able to import raw json data using import - "error": "Cannot read properties of undefined (reading 'kind')". #194

Open
AbhayaShankar opened this issue May 13, 2024 · 2 comments
Assignees

Comments

@AbhayaShankar
Copy link

AbhayaShankar commented May 13, 2024

Describe the bug
I have tried importing the json file to the import use code editor but it's giving me
"error": "Cannot read properties of undefined (reading 'kind')".

Any way I can tackle this ?

Below is my schema type

{
  "kind": "collectionType",
  "collectionName": "developers",
  "info": {
    "singularName": "developer",
    "pluralName": "developers",
    "displayName": "developer",
    "description": ""
  },
  "options": {
    "draftAndPublish": true
  },
  "pluginOptions": {
    "import-export-entries": {
      "idField": "title"
    }
  },
  "attributes": {
    "title": {
      "type": "string",
      "required": true,
      "unique": false
    },
    "logo": {
      "type": "media",
      "multiple": false,
      "required": false,
      "allowedTypes": ["images"]
    },
    "description": {
      "type": "text",
      "required": true
    },
    "properties": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::property.property",
      "mappedBy": "developer"
    },
    "slug": {
      "type": "uid",
      "targetField": "title"
    }
  }
}

The data I am trying to add as a raw json file is something like this :-

{
  "title": "Sample Developer",
  "description": "This is a sample developer description."
}

I am not even able to import even the required fields. Any way to tackle this ?

@AbhayaShankar AbhayaShankar changed the title [Not able to import raw json data using import] [BUG] - Not able to import raw json data using import - "error": "Cannot read properties of undefined (reading 'kind')". May 13, 2024
@joeldow
Copy link

joeldow commented Aug 21, 2024

Is this package being maintained? Not seeing any movement on bug fixes.

@AbhayaShankar
Copy link
Author

Apparently not!

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

No branches or pull requests

3 participants