Skip to content

v2-exp readme tutorial not working #1479

@N1xev

Description

@N1xev

the problem when i use the code specified in the README.md

it gives this errors and not work:

Image
# 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.SetCursorColor

and if i run it using bubbletea v1 it works normally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions