Closed dev0T closed 1 year ago
While getting familiar with the library codebase I realized a message regarding a Circular Dependency when running npm run dist:
npm run dist
Circular dependency: src/index.ts -> src/ChatBubble/index.ts -> src/ChatBubble/ChatBubble.tsx -> src/ChatBubble/ChatBubbleAvatar.tsx -> src/index.ts
This is caused by the ChatBubbleAvatar importing Avatar from src/index.ts instead of src/Avatar.
The current import looks like this:
import { Avatar, AvatarProps } from '..'
When they should be:
import Avatar, { AvatarProps } from '../Avatar'
I am making a PR to fix it right now.
Thanks for finding this, approved the PR!
While getting familiar with the library codebase I realized a message regarding a Circular Dependency when running
npm run dist
:This is caused by the ChatBubbleAvatar importing Avatar from src/index.ts instead of src/Avatar.
The current import looks like this:
When they should be:
I am making a PR to fix it right now.