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

frontend-dist not found in package pautobot. Please run: bash build_frontend.sh #19

Open
LanceLake opened this issue Jun 10, 2023 · 9 comments
Labels
bug Something isn't working Windows

Comments

@LanceLake
Copy link

So I ran this in git bash for windows and it didn't help.

Also, when I run the development side, I get this..

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./components/RightSidebar.js
./pages/index.js

  • wait compiling /_error (client and server)...
  • error ./components/ContextManager.js:3:0
    Module not found: Can't resolve '@lib/requests/history'
    1 | import { toast } from "react-toastify";
    2 |

3 | import { clearChatHistory } from "@lib/requests/history";
4 | import { ingestData } from "@/lib/requests/documents";
5 |
6 | export default function ModelSelector() {

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./components/RightSidebar.js
./pages/index.js

@vietanhdev
Copy link
Member

Hi!
You need to install dependencies for frontend first:

  • Requirement: NodeJS >= 18.
cd frontend
npm install

@LanceLake
Copy link
Author

I did that already. I did it again and still the same error. No errors found.

@LanceLake
Copy link
Author

@LanceLake
Copy link
Author

@vietanhdev
Copy link
Member

@LanceLake Please pull the latest code from main branch and try again.

@vietanhdev vietanhdev added bug Something isn't working Windows labels Jun 10, 2023
@LanceLake
Copy link
Author

LanceLake commented Jun 10, 2023

Ran pip install -e .
No issues when run.

Ran python -m pautobot.app
got frontend-dist not found in package pautobot. Please run: bash build_frontend.sh

Ran npm install
Ran npm run dev

Same issue and same error when I try to go to the page.

So basically, no change at all. Yes, I did a fresh pull.

@DevonWieczorek
Copy link

FWIW I'm getting the same thing on my MacBook Pro
node 19.8.1 npm 9.5.1 python 3.11.3

@vietanhdev
Copy link
Member

@LanceLake Lan @DevonWieczorek
Please pull the code from main and try again.
This bug is because lib folder was excluded by git.
Thank you!

@LanceLake
Copy link
Author

LanceLake commented Jun 11, 2023

Working..

Well, I'm still getting "frontend-dist not found in package pautobot. Please run: bash build_frontend.sh" when going to localhost:5678, but at least 3000 is giving me the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows
Projects
None yet
Development

No branches or pull requests

3 participants