blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

ComponentPropsWithoutRef repeated #234

Closed winner106 closed 3 years ago

winner106 commented 3 years ago

What is the problem?

ComponentPropsWithoutRef

Paste all your error logs here:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from G:\MyProjects\ProjectTest\blitz02\.env.local
info  - Loaded env from G:\MyProjects\ProjectTest\blitz02\.env
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - Using external babel configuration from G:\MyProjects\ProjectTest\blitz02\babel.config.js
error - ./app/core/components/LabeledTextField.tsx:5:2
Syntax error: Identifier 'ComponentPropsWithoutRef' has already been declared

  3 |   ComponentPropsWithoutRef,
  4 |   PropsWithoutRef,
> 5 |   ComponentPropsWithoutRef,
    |   ^
  6 | } from "react";
  7 | import { useField, UseFieldConfig } from "react-final-form"
  8 |
Attention: Blitz.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Blitz.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?

  1. blitz new blitz02
  2. cd .\blitz02\
  3. yarn
  4. blitz prisma migrate dev
  5. blitz install chakra-ui
  6. blitz dev

Run blitz -v and paste the output here:

blitz: 0.41.0 (global)

  Package manager: npm
  System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Memory: 16.87 GB / 23.87 GB
  Binaries:
    Node: 14.18.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.15 - C:\Program Files\nodejs\yarn.CMD
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  npmPackages:
    @prisma/client: Not Found
    blitz: Not Found
    prisma: Not Found
    react: Not Found
    react-dom: Not Found
    typescript: Not Found

Please include below any other applicable logs and screenshots that show your problem:

No response