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

Type error: 'NumberFormat' cannot be used as a JSX component. #295

Open
tabatinga0xffff opened this issue Oct 19, 2023 · 5 comments
Open

Comments

@tabatinga0xffff
Copy link

$ npm run build
===>
......

- info Linting and checking validity of types ..Failed to compile.

- info Linting and checking validity of types ..../components/BorrowForm.tsx:237:18
Type error: 'NumberFormat' cannot be used as a JSX component.
  Its instance type 'NumberFormat<unknown>' is not a valid JSX element.

  235 |               </div>
  236 |               <div className="col-span-1">
> 237 |                 <NumberFormat
      |                  ^
  238 |                   name="amountIn"
  239 |                   id="amountIn"
  240 |                   inputMode="decimal"
- info Linting and checking validity of types .
@minhtran04
Copy link

$ npm run build
===>
......

- info Linting and checking validity of types ..Failed to compile.

- info Linting and checking validity of types ..../components/BorrowForm.tsx:237:18
Type error: 'NumberFormat' cannot be used as a JSX component.
  Its instance type 'NumberFormat<unknown>' is not a valid JSX element.

  235 |               </div>
  236 |               <div className="col-span-1">
> 237 |                 <NumberFormat
      |                  ^
  238 |                   name="amountIn"
  239 |                   id="amountIn"
  240 |                   inputMode="decimal"
- info Linting and checking validity of types .

@minhtran04
Copy link

[email protected]

@minhtran04
Copy link

$ npm run build
===>
......

- info Linting and checking validity of types ..Failed to compile.

- info Linting and checking validity of types ..../components/BorrowForm.tsx:237:18
Type error: 'NumberFormat' cannot be used as a JSX component.
  Its instance type 'NumberFormat<unknown>' is not a valid JSX element.

  235 |               </div>
  236 |               <div className="col-span-1">
> 237 |                 <NumberFormat
      |                  ^
  238 |                   name="amountIn"
  239 |                   id="amountIn"
  240 |                   inputMode="decimal"
- info Linting and checking validity of types .

@minhtran04
Copy link

0x8c8449a7767f1d1e96038ed5758b8af7a90cc701

@irispigo
Copy link

This issue is not appeared on my computer for now. Could you explain more details?

Thank you.

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

3 participants