pautobot icon indicating copy to clipboard operation
pautobot copied to clipboard

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

Open LanceLake opened this issue 2 years ago • 9 comments

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

LanceLake avatar Jun 10 '23 11:06 LanceLake

Hi! You need to install dependencies for frontend first:

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

vietanhdev avatar Jun 10 '23 11:06 vietanhdev

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

LanceLake avatar Jun 10 '23 12:06 LanceLake

https://i.imgur.com/2AJCdBw.png

LanceLake avatar Jun 10 '23 12:06 LanceLake

https://i.imgur.com/exl2rQ4.png

LanceLake avatar Jun 10 '23 12:06 LanceLake

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

vietanhdev avatar Jun 10 '23 15:06 vietanhdev

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.

LanceLake avatar Jun 10 '23 15:06 LanceLake

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

DevonWieczorek avatar Jun 10 '23 17:06 DevonWieczorek

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

vietanhdev avatar Jun 11 '23 08:06 vietanhdev

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.

LanceLake avatar Jun 11 '23 10:06 LanceLake