You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=> ERROR [rair-front build 7/7] RUN yarn build 33.3s
[rair-front build 7/7] RUN yarn build:
0.577 yarn run v1.22.22
0.616 $ tsc --target ES2020 && vite build
33.06 src/redux/searchbarSlice.ts(28,28): error TS18048: 'rairSDK.search' is possibly 'undefined'.
33.06 src/redux/searchbarSlice.ts(58,8): error TS2769: No overload matches this call.
33.06 Overload 1 of 2, '(actionCreator: AsyncThunkFulfilledActionCreator<SearchResponse, SearchBarParam, AsyncThunkConfig>, reducer: CaseReducer<...>): ActionReducerMapBuilder<...>', gave the following error.
33.06 Argument of type '(state: WritableDraft, action: { payload: SearchbarResponse; type: string; }) => void' is not assignable to parameter of type 'CaseReducer<SearchbarState, PayloadAction<SearchResponse, string, { arg: SearchBarParam; requestId: string; requestStatus: "fulfilled"; }, never>>'.
33.06 Types of parameters 'action' and 'action' are incompatible.
33.06 Type 'PayloadAction<SearchResponse, string, { arg: SearchBarParam; requestId: string; requestStatus: "fulfilled"; }, never>' is not assignable to type '{ payload: SearchbarResponse; type: string; }'.
33.06 The types of 'payload.data.users' are incompatible between these types.
33.06 Type 'import("/usr/src/minting/node_modules/@rair-protocol/sdk/src/types/database").User[]' is not assignable to type 'import("/usr/src/minting/src/types/databaseTypes").User[]'.
33.06 Type 'import("/usr/src/minting/node_modules/@rair-protocol/sdk/src/types/database").User' is not assignable to type 'import("/usr/src/minting/src/types/databaseTypes").User'.
33.06 Types of property 'creationDate' are incompatible.
33.06 Type 'Date | undefined' is not assignable to type 'string | undefined'.
33.06 Type 'Date' is not assignable to type 'string'.
33.06 Overload 2 of 2, '(type: string, reducer: CaseReducer<SearchbarState, { payload: SearchbarResponse; type: string; }>): ActionReducerMapBuilder', gave the following error.
33.06 Argument of type 'AsyncThunkFulfilledActionCreator<SearchResponse, SearchBarParam, AsyncThunkConfig>' is not assignable to parameter of type 'string'.
33.17 error Command failed with exit code 2.
33.17 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
in this PR I've added rair-sdk for search