Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
175 stars 86 forks source link

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

Open AbhayaShankar opened 3 months ago

AbhayaShankar commented 3 months ago

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 ?

joeldow commented 2 weeks ago

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

AbhayaShankar commented 3 days ago

Apparently not!