-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue #130: Грейд версий @atls/react-kratos-browser-flows #132
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,12 @@ | |
"events": "^3.3.0" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^12.1.3", | ||
"@types/events": "^3.0.0", | ||
"@types/react": "18.2.20", | ||
"@types/react-dom": "18.2.7", | ||
"@types/testing-library__jest-dom": "^5.14.1", | ||
"@testing-library/jest-dom": "^5.17.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Выше версии не обновлены, особенно There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Попробуй добавь в зависимости пакета: "@ory/client": "1.2.11",
"@ory/integrations": "1.1.5",
"@ory/kratos-client": "1.0.0", There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Замени в проекте:
По остальному посмотри откуда идут экспорты тут https://github.com/atls/nextjs/tree/master/packages/identity-integration Это аналогичный пакет, но под There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
SubmitSelfServiceVerificationFlowBody на VerificationFlowBody Ошибка: packages/kratos-browser-flows/src/flows/verification.flow.ts There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Проверься с тем пакетом что выслал - там тот же функционал и экспорты. Из-за старости версии тут могут различаться по названию интерфейсов. |
||
"@testing-library/react": "^12.1.5", | ||
"@types/events": "^3.0.2", | ||
"@types/react": "18.2.31", | ||
"@types/react-dom": "18.2.14", | ||
"@types/testing-library__jest-dom": "^5.14.9", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"axios": "^0.21.4", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут я тебя ввел в заблуждение - обычно когда говорим "не выше" имеется в виду что можно использовать и последнюю. Т.е.
@types/react
я бы зафиксировал "17.Х.Х", где Х - последняя версия на npmjs.com@emotion/react
,eslint
иtypescript
здесь лишние - их мы можем фиксировать вручную в проектах.Вообще
resolutions
используется тогда, когда наши внешние зависимости тянут с собой что то, что нас не устраивает по версии. Вот твой случай - у тебя из-за внешних зависимостей@types/react
"задваивался", из-за чего были ошибки. Поэтому я предложил тебе воспользоватьсяresolutions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Имеешь в виду, что @emotion/react, eslint и typescript можно убрать из resolutions? Они были там до меня.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можешь оставить, главное версии держи четко зафиксированными. Ну и посмотри чтобы не было диссонанса - например, в
resolutions
тайпскрипт - 4.6.4, а ниже - 4.6.2