Skip to content

Conversation

@SeanM322
Copy link
Collaborator

in this PR I've added rair-sdk for search

@sarora180673
Copy link
Collaborator

getting error while building

=> 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.


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

Successfully merging this pull request may close these issues.

3 participants