adrianhajdin / project_medical_pager_chat

Medical Pager Chat App powered by GetStream
1.5k stars 466 forks source link

export 'MessageTeam' (imported as 'MessageTeam') was not found in 'stream-chat-react #23

Open hugojaimeb opened 2 years ago

hugojaimeb commented 2 years ago

export 'MessageTeam' (imported as 'MessageTeam') was not found in 'stream-chat-react' (possible exports ATTACHMENT_GROUPS_ORDER, ActionsIcon, Attachment, AttachmentActions, AttachmentActionsContainer, AttachmentPreviewList, AttachmentWithinContainer, Audio, AudioContainer, AutoCompleteTextarea, Avatar, Card, CardAudio, CardContainer, Channel, ChannelActionContext, ChannelActionProvider, ChannelHeader, ChannelList, ChannelListMessenger, ChannelPreview, ChannelPreviewMessenger, ChannelSearch, ChannelStateContext, ChannelStateProvider, Chat, ChatAutoComplete, ChatContext, ChatDown, ChatProvider, CloseIcon, CommandItem, ComponentContext, ComponentProvider, ConnectionStatus, CooldownTimer, DateSeparator, DefaultSuggestionList, DefaultSuggestionListHeader, DefaultSuggestionListItem, DefaultTriggerProvider, DeliveredCheckIcon, DownloadIcon, EditMessageForm, EmojiContext, EmojiIconLarge, EmojiIconSmall, EmojiPicker, EmojiPickerIcon, EmojiProvider, EmoticonItem, EmptyStateIndicator, ErrorIcon, EventComponent, FileAttachment, FileContainer, FileUploadIcon, FileUploadIconFlat, FixedHeightMessage, Gallery, GalleryContainer, GiphyPreviewMessage, ImageComponent, ImageContainer, InfiniteScroll, LoadMoreButton, LoadMorePaginator, LoadingChannels, LoadingErrorIndicator, LoadingIndicator, LoadingIndicatorIcon, MAX_QUERY_CHANNELS_LIMIT, MESSAGE_ACTIONS, MML, MediaContainer, Message, MessageActions, MessageActionsBox, MessageContext, MessageDeleted, MessageDeliveredIcon, MessageErrorIcon, MessageInput, MessageInputContext, MessageInputContextProvider, MessageInputFlat, MessageInputSmall, MessageList, MessageNotification, MessageOptions, MessageProvider, MessageRepliesCountButton, MessageSimple, MessageStatus, MessageText, MessageTimestamp, Modal, ModalGallery, PinIcon, PinIndicator, PlayButton, PopperTooltip, ProgressBar, QuotedMessagePreview, QuotedMessagePreviewHeader, ReactionIcon, ReactionSelector, ReactionsList, ReplyIcon, RetryIcon, SUPPORTED_VIDEO_FORMATS, SafeAnchor, ScrollToBottomButton, SearchBar, SearchInput, SearchResults, SendButton, SendIconV1, SendIconV2, SimpleReactionsList, Streami18n, Thread, ThreadHeader, ThreadIcon, ThreadStart, Tooltip, TranslationContext, TranslationProvider, TypingContext, TypingIndicator, TypingProvider, UnMemoizedLoadMorePaginator, UploadIcon, UploadsPreview, UserItem, VirtualizedMessageList, Window, areMessagePropsEqual, areMessageUIPropsEqual, darkModeTheme, deTranslations, defaultDateTimeParser, defaultPinPermissions, defaultScrollToItem, defaultTimestampFormat, defaultTranslatorFunction, emojiMarkdownPlugin, enTranslations, esTranslations, escapeRegExp, frTranslations, generateRandomId, getChannel, getDisplayImage, getDisplayTitle, getGroupStyles, getImages, getLastReceived, getLatestMessagePreview, getMessageActions, getNonImageAttachments, getReadByTooltipText, getReadStates, getWholeChar, handleActionWarning, hasMoreMessagesProbably, hasNotMoreMessages, hiTranslations, insertIntro, isAudioAttachment, isChannel, isDate, isDayOrMoment, isFileAttachment, isGalleryAttachmentType, isLanguageSupported, isMediaAttachment, isNumberOrString, isOnlyEmojis, isScrapedContent, isSvgAttachment, isUploadedImage, isUserMuted, itTranslations, jaTranslations, koTranslations, makeDateMessageId, mapToUserNameOrId, markDownRenderers, matchMarkdownLinks, mentionsMarkdownPlugin, messageCodeBlocks, messageHasAttachments, messageHasReactions, missingUseFlagHandlerParameterWarning, missingUseMuteHandlerParamsWarning, moveChannelUp, nlTranslations, processMessages, ptTranslations, reactionHandlerWarning, renderAttachmentActions, renderAttachmentWithinContainer, renderAudio, renderCard, renderFile, renderGallery, renderImage, renderMedia, renderPreviewText, renderText, ruTranslations, showMessageActionsBox, trTranslations, useActionHandler, useChannelActionContext, useChannelDeletedListener, useChannelEditMessageHandler, useChannelHiddenListener, useChannelMentionsHandler, useChannelPreviewInfo, useChannelStateContext, useChannelTruncatedListener, useChannelUpdatedListener, useChannelVisibleListener, useChat, useChatContext, useComponentContext, useConnectionRecoveredListener, useCooldownTimer, useCustomStyles, useDeleteHandler, useEditHandler, useEmojiContext, useEnrichedMessages, useFlagHandler, useLastReadData, useMentionsHandler, useMessageContext, useMessageInputContext, useMessageInputState, useMessageListElements, useMessageListScrollManager, useMessageNewListener, useMobileNavigation, useMuteHandler, useNewMessageNotification, useNotificationAddedToChannelListener, useNotificationMessageNewListener, useNotificationRemovedFromChannelListener, useOpenThreadHandler, usePaginatedChannels, usePinHandler, usePrependedMessagesCount, useReactionClick, useReactionHandler, useRetryHandler, useScrollLocationLogic, useShouldForceScrollToBottom, useTranslationContext, useTypingContext, useUserHandler, useUserPresenceChangedListener, useUserRole, validateAndGetMessage, withChannelActionContext, withChannelStateContext, withChatContext, withComponentContext, withEmojiContext, withMessageContext, withTranslationContext, withTypingContext)

masects commented 2 years ago

having the same issue

elvinnadir commented 2 years ago

Same problem.Because MessageTeam removed in stream-chat-react.What is alternative for this.I dont know

mhmdfrhn commented 2 years ago

@hugojaimeb Uninstalled v10x and installed v9.x it solved for me, or u can install stream-chat-react@6.5.1 instantly

237nkanke commented 1 year ago

having the same issue and am still looking for a solution

thiernoa98 commented 1 year ago

guys, type these lines of codes it works perfectly fine: <Channel

    EmptyStateIndicator={EmtypState}
  //MessageText is a stream func used to display the message
    //Message = {(messageProps, index) => <ChannelInner key={index} {...messageProps} /> }
    >

      <ChannelInner
        setIsEditing = {setIsEditing}
      />

you don't need the MessageTeam function at all, that's why I commented it out.

Amrutha5081 commented 1 year ago

Hey everyone, I was trying this out and faced the same issue. Got the solution too.

  1. Try uninstalling the stream-chat-react and installing it back with version 6.5.1
  2. If that doesn't work, then use 'MessageSimple' component instead of 'MessageTeam'. That should do the job. Hope it helps y'all! Happy coding.
chopsqd commented 1 year ago

Hello guys. If anyone still needs the solution, then try to use MessageSimple component instead MessageTeam, it works almost the same way. The already deprecated MessageTeam component was removed from the SDK

AzyzHssin commented 1 year ago

MessageTeam removed in stream-chat-react.What is alternative for this

The MessageTeam component was removed from the stream-chat-react library as of version 4.0.0. Instead, you can use the Message component with the messageType prop set to "system" to display system messages such as team messages.

tewodrosGirmaA commented 1 year ago

After a thorough debugging process, I discovered that the MessageTeam Component is no longer in use. Instead, it should be replaced with Message. Thank you for your attention. If you are interested in hiring me, please contact me via email at tedigirmaabebe@gmail.com.