-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
- 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
- Go to strapi repo
- Copy one of core package's path
- Create same path in /src/extensions/ directory
- Copy some files to override from repo and make changes to them
- Run npm run strapi && npm run strapi watch-admin
- Observe no changes to components you've just override
Expected behavior
Files you override should have effect on the project