Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolving global import issue in the react app #606

Open
ffma-glen-sampson opened this issue Nov 20, 2024 · 1 comment
Open

resolving global import issue in the react app #606

ffma-glen-sampson opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ffma-glen-sampson
Copy link

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",
@charles-marion charles-marion added the bug Something isn't working label Nov 22, 2024
@charles-marion
Copy link
Collaborator

charles-marion commented Nov 22, 2024

Thank you for the report and suggestion!.
The proposed option would break the command npm run dev. I will have a look when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants