Skip to content
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

Warning when rendering in Next.js with a client component #423

Open
apl-by opened this issue Oct 6, 2023 · 0 comments
Open

Warning when rendering in Next.js with a client component #423

apl-by opened this issue Oct 6, 2023 · 0 comments

Comments

@apl-by
Copy link

apl-by commented Oct 6, 2023

Hello,

I am using the "react-otp-input" library with version "3.1.0" in Next.js "13.4.19" within a client component. I am encountering the following warning message: "Warning: Prop inputMode did not match. Server: "null" Client: "text"."

In "node_modules/react-otp-input/lib/index.js " file, the inputMode attribute is missing. However, it is present in "index.esm.js " and "index.cjs".

For example, when I import OtpInput as follows:

import OtpInput from 'react-otp-input/lib/index.esm.js'

The warning message disappears

Is this a bundling issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant