https://github.com/thollander/strapi-repro-18350
Repro for Strapi #18350
https://github.com/thollander/strapi-repro-18350
Last synced: about 1 year ago
JSON representation
Repro for Strapi #18350
- Host: GitHub
- URL: https://github.com/thollander/strapi-repro-18350
- Owner: thollander
- Created: 2024-03-13T20:17:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T20:29:06.000Z (about 2 years ago)
- Last Synced: 2024-10-11T15:12:32.410Z (over 1 year ago)
- Language: JavaScript
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Repro for https://github.com/strapi/strapi/issues/18350
There is a dataset present in the root folder : `export_20240313210813.tar.gz`
You can import it through : `yarn strapi import -f ./export_20240313210813.tar.gz --force`
If you run this command a first time with an empty database, it should work fine.
You should see a **Yellow shirt** in the `crossSelling` field of the `Homepage` while running `yarn develop`.
However, if you run it again, a warning will be logged :
```
...
warn: Skipping link products.cross-selling:1 -> api::product.product:3 due to a foreign key constraint.
...
```
It's only a warning but there is actually an error as the product **Yellow shirt** as disappeared from the `crossSelling` field of the `Homepage`.
This error seems to happen when you have multiple components within the same collection.