torin-asakura / drum-in

Drum Instructor
https://drumin.pro
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Feature/tinkoff terminal #124

Closed absolemDev closed 10 months ago

absolemDev commented 11 months ago

ПР создан в рамках задачи https://github.com/torin-asakura/drum-in/issues/120

absolemDev commented 11 months ago

Кроме виджета yarn check еще выдает ошибку

➤ YN0000: │ 
➤ YN0000: │ .yarn/unplugged/swiper-virtual-fdbed35c49/node_modules/swiper/react/swiper-react.d.ts
➤ YN0000: │ 
➤ YN0000: │   Error: Interface 'SwiperProps' incorrectly extends interface 'Omit<HTMLAttributes<HTMLElement>, "onKeyPress" | "onProgress" | "onClick" | "onDoubleClick" | "onTouchEnd" | 
➤ YN0000: │        "onTouchMove" | "onTouchStart" | "onScroll" | "onTransitionEnd">'.
➤ YN0000: │          Types of property 'onResize' are incompatible.
➤ YN0000: │            Type '((swiper: Swiper) => void) | undefined' is not assignable to type 'ReactEventHandler<HTMLElement> | undefined'.
➤ YN0000: │              Type '(swiper: Swiper) => void' is not assignable to type 'ReactEventHandler<HTMLElement>'.
➤ YN0000: │                Types of parameters 'swiper' and 'event' are incompatible.
➤ YN0000: │                  Type 'SyntheticEvent<HTMLElement, Event>' is missing the following properties from type 'Swiper': params, originalParams, $el, el, and 90 more.
➤ YN0000: │ 
➤ YN0000: │ 
➤ YN0000: │ .yarn/unplugged/swiper-virtual-fdbed35c49/node_modules/swiper/react/swiper-react.d.ts
➤ YN0000: │ 
➤ YN0000: │   Error: Interface 'SwiperSlideProps' incorrectly extends interface 'HTMLAttributes<HTMLElement>'.
➤ YN0000: │          Types of property 'children' are incompatible.
➤ YN0000: │            Type 'ReactNode | ((slideData: SlideData) => ReactNode)' is not assignable to type 'ReactNode'.
➤ YN0000: │              Type '(slideData: SlideData) => ReactNode' is not assignable to type 'ReactNode'.
➤ YN0000: │

Пробывал в проекте обновить зависимость @atls-ui-parts/swiper до версии 0.0.5, не помогло.

absolemDev commented 11 months ago

Здесь пример использования виджета https://github.com/torin-asakura/drum-in/blob/03ef8bdf99c7ccab7ec3eb48a9faa763b1f58b33/ui/form/src/form-content/form-content.component.tsx#L104

Nelfimov commented 11 months ago

yarn check падает скорее всего из-за нескольких версий пакета swiper. Проверь на всякий случай либо откатись на старую версию.

absolemDev commented 11 months ago

Обрати внимание на ругань IDE:

Эти ошибки пропадут после мержа моих изменений в мастер виджета

absolemDev commented 11 months ago

yarn check падает скорее всего из-за нескольких версий пакета swiper. Проверь на всякий случай либо откатись на старую версию.

Пофиксел.

На админке нужно добавить поле email https://github.com/torin-asakura/drum-in/blob/4a8341e45c0542aa95abbc4810123d98a7a9a0f3/ui/form/src/data/queries/form-data-by-id.query.ts#L4

Nelfimov commented 11 months ago

На админке нужно добавить поле email

https://github.com/torin-asakura/drum-in/blob/4a8341e45c0542aa95abbc4810123d98a7a9a0f3/ui/form/src/data/queries/form-data-by-id.query.ts#L4

С админки тянется только плейсхолдер. Добавь в код сам, тем более что это универальный email

absolemDev commented 10 months ago

@Nelfimov, Namespace 'React' has no exported member 'JSX'. так и не поддается.

Nelfimov commented 10 months ago

Проверь сколько версий @types/react в проекте. Если что - фиксируй резолюшеном.

absolemDev commented 10 months ago

@Nelfimov, как только не кручу зависимости то yarn check то yarn dev ломаются...

Nelfimov commented 10 months ago

начни с текущего состояния ремоута и попробуй так https://github.com/ant-design/ant-design/issues/44047#issuecomment-1667073195

absolemDev commented 10 months ago

начни с текущего состояния ремоута и попробуй так https://github.com/ant-design/ant-design/issues/44047#issuecomment-1667073195

и так пробовал

absolemDev commented 10 months ago

конфликт был в next