Skip to content

resolving global import issue in the react app #606

Open
@ffma-glen-sampson

Description

@ffma-glen-sampson

Unless I'm mistaken on the way that I'm to run this project locally this line has introduced an error for me when running npm run build:dev

https://github.com/aws-samples/aws-genai-llm-chatbot/blame/44e125a92e410cb629113dbc94af39b44b5cd92e/lib/user-interface/react-app/vite.config.ts#L13

for me it throws an arrow like this

[vite]: Rollup failed to resolve import "@cloudscape-design/{}-styles/index.css"

to resolve i had to revert back to the following in the vite.config.ts

    //global: isDev ? {} : "global",
    global: "global",

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions