chatscope / chat-ui-kit-styles

Base theme for chat-ui-kit-react
MIT License
15 stars 18 forks source link

Cannot import styles with TS and React 17.* #11

Closed jimmykane closed 1 year ago

jimmykane commented 1 year ago
import React from 'react';
import * as styles from '@chatscope/chat-ui-kit-styles/dist/default/styles.min.css';
import {
  MessageInput,
  ChatContainer,
  ConversationHeader,
  Avatar,
  VoiceCallButton,
  VideoCallButton,
  InfoButton,
  MessageList,
  TypingIndicator,
  Message,
} from '@chatscope/chat-ui-kit-react';

I get

Cannot find module '@chatscope/chat-ui-kit-styles/dist/default/styles.min.css' or its corresponding type declarations.

Thank your for your time

supersnager commented 1 year ago

@jimmykane This should work:

 import "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css";
jimmykane commented 1 year ago

Thais correct thanks