patw0929 / react-intl-tel-input

Rewrite International Telephone Input in React.js. (Looking for maintainers, and PRs & contributors are also welcomed!)
https://patw0929.github.io/react-intl-tel-input/
MIT License
282 stars 221 forks source link

flags not showing #369

Open jacky-ew opened 3 years ago

jacky-ew commented 3 years ago
Screenshot 2021-04-13 at 8 43 09 PM
Dhara-Actonate commented 3 years ago

I am getting the same issue. Can you please help solving it?

marwajomaa commented 3 years ago

I have the same issue, what's the fix for that?!! any help is appreciated. Thanks

andrewsantarin commented 2 years ago

@jacky-ew @Dhara-Actonate @marwajomaa

  1. What is your setup? Create React App? Next.js?
  2. Could you try the workaround in https://github.com/patw0929/react-intl-tel-input/issues/371#issuecomment-921258881?
rayrare112 commented 2 years ago

@jacky-ew @Dhara-Actonate @mariusandra In my case: image

Notice that the url source of background image is shown as '[object Module]' This is caused by the url-loader. You should modify your url-loader configuration with options below:

options: {
    esModule: false,
},

This will fix the issue in my case. Hope it will be helpful to you. image

Hien997 commented 1 year ago

I have had to install url-loader https://www.npmjs.com/package/url-loader This will fix the issue.

radelcom commented 1 year ago

i just ran into this after upgrading react-scripts/webpack to ~v5. what works for me is following webpack asset-modules docs

{
    test: /\.png/,
    type: 'asset/resource'
}
gary-hodgson-infotrack commented 11 months ago

Thanks @radelcom - that fixed my issue as well. module: { rules: [ { test: /\.png/, type: 'asset/resource', }]}