Yonom / assistant-ui

React Components for AI Chat 💬 🚀
https://www.assistant-ui.com
MIT License
1.75k stars 285 forks source link

Error: Cannot find module assistant-ui/examples/with-langgraph/node_modules/@assistant-ui/react/dist/tailwindcss/index.js' #826

Closed starascendin closed 1 month ago

starascendin commented 1 month ago

Anybody getting this issue on macos?

./app/globals.css.webpack[javascript/auto]!=!../../node_modules/.pnpm/next@14.2.9_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.9_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css
Error: Cannot find module '/Users/bryanliu/Documents/01.Codes/01.CurrentProjects/99.libs/LANGGRAPH/assistant-ui/examples/with-langgraph/node_modules/@assistant-ui/react/dist/tailwindcss/index.js'
<img width="1068" alt="Screenshot 2024-09-12 at 10 29 09 AM" src="https://github.com/user-attachments/assets/eea9b8c3-98c2-47bd-a736-942ba7eef90f">
<img width="1068" alt="Screenshot 2024-09-12 at 10 29 09 AM" src="https://github.com/user-attachments/assets/eea9b8c3-98c2-47bd-a736-942ba7eef90f">
Yonom commented 1 month ago

Hey, if you are using this repository, you must install packages using pnpm and do a full build before running the package:

pnpm install
pnpm turbo build

An easier way would be to use the frontend in assistant-ui-stockbroker repository which has the identical code:

https://github.com/Yonom/assistant-ui-stockbroker/blob/main/frontend

Yonom commented 1 month ago

Closing this issue as a workaround was provided. Let me know if you are still experiencing issues.