question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnhandledPromiseRejectionWarning: Error: Unsupported MIME type: image/x-icon

See original GitHub issue

I use this package both in dev and prod environment. I have similar set up but I get this error in the production. it is fine in dev.

here is the webpack set up

const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
const pathToFavicon = path.join(__dirname, "../../favicon.ico");

plugins:[
    new FaviconsWebpackPlugin(pathToFavicon),

]

Screenshot from 2020-07-30 22-23-27

I m getting this error only in prod.

this is the webpack.dev vs webpack.prod

Screenshot from 2020-07-30 22-25-38

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AnandaDwiprayogacommented, Sep 12, 2020

i got same error, use a .png doesn’t work

1reaction
jantimoncommented, Jul 31, 2020

Please use a .png file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unsupported MIME type: image/x-icon - Bountysource
I use this package both in dev and prod environment. I have similar set up but I get this error in the production....
Read more >
Unsupported MIME type: image/x-icon · Issue #79 - GitHub
I noted that icons are not supported: Unsupported MIME type: image/x-icon ERR TypeError: Cannot read property 'bitmap' of undefined at ...
Read more >
Service Worker registration error: Unsupported MIME type ...
The problem I encountered when I tried to publish on my server is that the service-worker.js file was available, but I was getting...
Read more >
use jimp to read webp image problem : r/node - Reddit
only problem is jimp returns this error: UnhandledPromiseRejectionWarning: Error: Unsupported MIME type: image/webp.
Read more >
聚合页_字母U分类_第490页 - 掘金
... ubuntu安装docker · unhandledpromiserejectionwarning error unsupported mime type image/x-icon · usb support partial initial · unity开发框架事件中心化区别 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found