Skip to content

Conversation

thomasbnt
Copy link
Contributor

Because I tested this example to replace the favicon, and I've got an error.

yarn run v1.22.19
$ strapi build
⠋ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (73ms)
⠋ Building admin panel
⠴ Building admin panel[ERROR] Module not found: Error: Can't resolve './extensions/favicon.png' in '/var/www/strapi/src/admin'
✖ Building admin panel
[ERROR]  There seems to be an unexpected error, try again with --debug for more information

error Command failed with exit code 1.

What does it do?

I changed the example code at https://docs.strapi.io/dev-docs/admin-panel-customization#favicon

Why is it needed?

Just adding a dot to ../extensions

Because I tested this example to replace the favicon, and I've got an error.

```bash
yarn run v1.22.19
$ strapi build
⠋ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (73ms)
⠋ Building admin panel
⠴ Building admin panel[ERROR] Module not found: Error: Can't resolve './extensions/favicon.png' in '/var/www/strapi/src/admin'
✖ Building admin panel
[ERROR]  There seems to be an unexpected error, try again with --debug for more information

error Command failed with exit code 1.
```
@thomasbnt thomasbnt requested a review from pwizla as a code owner January 15, 2024 23:29
Copy link

vercel bot commented Jan 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 11:30pm

@strapi-cla
Copy link

strapi-cla commented Jan 15, 2024

CLA assistant check
All committers have signed the CLA.

@thomasbnt thomasbnt changed the title Err code with ./extensions admin-panel-customization#favicon: Err code with ./extensions Jan 15, 2024
Copy link
Collaborator

@pwizla pwizla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @thomasbnt!
It's approved, merged, should be live on docs.strapi.io in a few minutes, and will be mentioned in the next weekly snapshot release.

@pwizla pwizla merged commit ad82c46 into strapi:main Jan 16, 2024
@pwizla pwizla added this to the 4.17.1 milestone Jan 16, 2024
@pwizla pwizla self-assigned this Jan 16, 2024
@pwizla pwizla added source: Dev Docs PRs/issues targeting the Developer Docs pr: chore labels Jan 16, 2024
@pwizla pwizla changed the title admin-panel-customization#favicon: Err code with ./extensions Fix error in favicon customization documentation Jan 17, 2024
pwizla added a commit that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: chore source: Dev Docs PRs/issues targeting the Developer Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants