-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flags not showing in next.js and the input not clickable #371
Comments
How I can fix this problem in next.js, I can't see the flags showing and the input is not clickable?!!! |
Did You solve it ? |
I am not having this problem in our Next.js app |
@marwajomaa @YousefYasin @MartinCura the asset location written in the source code doesn't seem to play well with Next.js and Create React App (in CodeSandbox, at least). react-intl-tel-input/src/intlTelInput.scss Lines 279 to 280 in cd9f262
I read that Next.js has a static file serving feature which, if it works like Create React App, might work around this problem. See the Could you all copy the PNG files in the repo (or in the |
So I was able to fix it (I'm using Webpack 5 and Next.js 11) with following steps:
...
webpack: (config, opts) => {
config.module.rules.push(
{
test: /\.png/i,
type: 'asset/resource',
generator: { publicPath: '/', filename: '[name][ext]' },
},
... Now the flags are displayed correctly. |
The text was updated successfully, but these errors were encountered: