Skip to content

How to import streamdown styles in monorepo setup #128

@zdzarsky

Description

@zdzarsky

Given the directory structure on monorepo (npm, turbo):

|- node_modules
|- apps
|-- web
|---- app
|------ globals.css
|- packages

In the message documentation (https://ai-sdk.dev/elements/components/response) says that streamdown should be sourced in globals.css in a following way:

@source "../node_modules/streamdown/dist/index.js";

The package is in the root node_modules and I was still unable to import correctly the styles what results in stream being updated with no updates in the UI. Could you please add some information how to configure it with monorepo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions