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

I can't add one component to another component #20302

Closed
JAZzmiX opened this issue May 13, 2024 · 4 comments
Closed

I can't add one component to another component #20302

JAZzmiX opened this issue May 13, 2024 · 4 comments

Comments

@JAZzmiX
Copy link

JAZzmiX commented May 13, 2024

Bug report

Required System information

  • Node.js version: node/v18.12.1 linux x64
  • NPM version: 8.19.2
  • Strapi version: 4.24.2
  • Yarn version: 1.22.19
  • Database: PostgreSQL 12.18
  • Operating system: linux-x64
  • Is your project Javascript or Typescript: Typescript

Describe the bug

if I add the component to the component gives me an error

error: create index "components_trip_coverage_section_trip_coverage_sections_component_type_index" on ││ "public"."components_trip_coverage_section_trip_coverage_sections_components" ("component_type") - relation "components_trip_coverage_section_trip_coverage_sections_compone" ││ already exists

Screenshot 2024-05-13 at 15 48 18

Steps to reproduce the behavior

I add one component to another
Screenshot 2024-05-13 at 16 01 35

@joshuaellis
Copy link
Member

Can you write actual reproduction steps please? what you've provided is not enough for anyone to debug.

@JAZzmiX
Copy link
Author

JAZzmiX commented May 15, 2024

Can you write actual reproduction steps please? what you've provided is not enough for anyone to debug.

created component name: "trip_coverage_section" then created component name: "birthday", added component "birthday" to component "trip_coverage_section"
(the project is not being built)
then the console shows the error:

error: create index "components_trip_coverage_section_trip_coverage_sections_component_type_index" on ││ "public"."components_trip_coverage_section_trip_coverage_sections_components" ("component_type") - relation "components_trip_coverage_section_trip_coverage_sections_compone" ││ already exists

@joshuaellis
Copy link
Member

And you created this in the ui? :)

@derrickmehaffy
Copy link
Member

The UI in v4 restricts component nesting to 2 levels, we will allow deeper nesting beyond 2 levels via the UI in Strapi 5 but nothing is planned for v4

@derrickmehaffy derrickmehaffy closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants