-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
the problem when i use the code specified in the README.md
it gives this errors and not work:
# github.com/charmbracelet/bubbletea/v2
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/cursed_renderer.go:71:31: cannot use s.lastCur.Color (variable of interface type color.Color) as string value in argument to ansi.SetCursorColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:596:40: cannot use msg.Color (variable of interface type color.Color) as string value in argument to ansi.SetBackgroundColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:604:40: cannot use msg.Color (variable of interface type color.Color) as string value in argument to ansi.SetForegroundColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:612:36: cannot use msg.Color (variable of interface type color.Color) as string value in argument to ansi.SetCursorColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:1160:37: cannot use p.setBg (variable of interface type color.Color) as string value in argument to ansi.SetBackgroundColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:1163:37: cannot use p.setFg (variable of interface type color.Color) as string value in argument to ansi.SetForegroundColor
/home/alaa/go/pkg/mod/github.com/charmbracelet/bubbletea/[email protected]/tea.go:1166:33: cannot use p.setCc (variable of interface type color.Color) as string value in argument to ansi.SetCursorColorand if i run it using bubbletea v1 it works normally