Skip to content

Commit

Permalink
Err code with ./extensions (#1977)
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
thomasbnt authored Jan 16, 2024
1 parent 93fae49 commit ad82c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/admin-panel-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ To replace the favicon, use the following procedure:
4. Update `./src/admin/app.js` with the following:

```js title="./src/admin/app.js"
import favicon from "./extensions/favicon.png";
import favicon from "../extensions/favicon.png";

export default {
config: {
Expand Down

1 comment on commit ad82c46

@vercel
Copy link

@vercel vercel bot commented on ad82c46 Jan 16, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

documentation – ./

documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app
docs-vercel-v4.strapi.io

Please sign in to comment.