Skip to content

Can't override admin panel pages #13523

@AlexanderPershin

Description

@AlexanderPershin
  • Node.js version: v16.14.2
  • NPM version: 8.5.0
  • Strapi version: 4.1.12
  • Database: sqlite
  • Operating system: ubuntu 21.10

I need to override default React components (pages) for admin panel, however I wasn't able to do that
I created directories structure:
src


skip


├── extensions
│ ├── admin
│ │ └── admin
│ │ └── src
│ │ └── pages
│ │ └── HomePage
│ │ ├── ContentBlocks.js
│ │ ├── HomeHeader.js
│ │ ├── index.js
│ │ └── SocialLinks.js
│ └── content-manager
│ └── strapi-server.js
├── index.js
└── plugins
Which should've reflected "strapi/packages/core/admin/admin/src/pages/HomePage/" path in repo
But no changes happened

For content-manager the simillar scheme worked perfectly - I overrode file strapi-server.js and everything worked, but I assume that was just an exception

Steps to reproduce the behavior

  1. Go to strapi repo
  2. Copy one of core package's path
  3. Create same path in /src/extensions/ directory
  4. Copy some files to override from repo and make changes to them
  5. Run npm run strapi && npm run strapi watch-admin
  6. Observe no changes to components you've just override

Expected behavior

Files you override should have effect on the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: will not fixWon't fix as it's either intended or for some other reason

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions