neo4j-labs / llm-graph-builder

Neo4j graph construction from unstructured data using LLMs
https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/
Apache License 2.0
2.34k stars 376 forks source link

yarn run build error TS6133: ArrowPathIconSolid and onRetry #742

Closed gianlubiscotto closed 1 month ago

gianlubiscotto commented 1 month ago

I'm stuck on the docker compose command because of two errors after yarn run build.

Step 17/22 : RUN VITE_BACKEND_API_URL=$VITE_BACKEND_API_URL     VITE_REACT_APP_SOURCES=$VITE_REACT_APP_SOURCES     VITE_LLM_MODELS=$VITE_LLM_MODELS     VITE_GOOGLE_CLIENT_ID=$VITE_GOOGLE_CLIENT_ID     VITE_BLOOM_URL=$VITE_BLOOM_URL     VITE_CHUNK_SIZE=$VITE_CHUNK_SIZE     VITE_TIME_PER_PAGE=$VITE_TIME_PER_PAGE     VITE_ENV=$VITE_ENV     VITE_LARGE_FILE_SIZE=${VITE_LARGE_FILE_SIZE}     VITE_CHAT_MODES=$VITE_CHAT_MODES     VITE_BATCH_SIZE=$VITE_BATCH_SIZE     yarn run build
 ---> Running in 872beb68c96f
yarn run v1.22.22
$ tsc && vite build
src/components/FileTable.tsx(38,10): error TS6133: 'ArrowPathIconSolid' is declared but its value is never read.
src/components/FileTable.tsx(52,73): error TS6133: 'onRetry' is declared but its value is never read.

The full output of my docker-compose up --build command:

/usr/bin/docker-compose:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
Building backend
Step 1/10 : FROM python:3.10-slim
 ---> 4c544397d8a3
Step 2/10 : WORKDIR /code
 ---> Using cache
 ---> 0a459a43042d
Step 3/10 : ENV PORT 8000
 ---> Using cache
 ---> 4dd7d139cc27
Step 4/10 : EXPOSE 8000
 ---> Using cache
 ---> 1a4753777063
Step 5/10 : RUN apt-get update &&    apt-get install -y --no-install-recommends        libgl1-mesa-glx        libreoffice        cmake        poppler-utils        tesseract-ocr &&    apt-get clean &&    rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> ae166cd8018e
Step 6/10 : ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
 ---> Using cache
 ---> 553cd8ca09f4
Step 7/10 : COPY requirements.txt /code/
 ---> Using cache
 ---> 1d5e19a444aa
Step 8/10 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> ee6f0b3ed105
Step 9/10 : COPY . /code
 ---> Using cache
 ---> a86e7065074c
Step 10/10 : CMD ["gunicorn", "score:app", "--workers", "8","--threads", "8", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--timeout", "300"]
 ---> Using cache
 ---> cff9ee1cb210
Successfully built cff9ee1cb210
Successfully tagged llm-graph-builder-main_backend:latest
Building frontend
Step 1/22 : FROM node:20 AS build
 ---> dd223fd5024d
Step 2/22 : ARG VITE_BACKEND_API_URL="http://localhost:8000"
 ---> Using cache
 ---> 64ba19b8dacb
Step 3/22 : ARG VITE_REACT_APP_SOURCES=""
 ---> Using cache
 ---> a6416373042e
Step 4/22 : ARG VITE_LLM_MODELS=""
 ---> Using cache
 ---> 170b7a7a1c03
Step 5/22 : ARG VITE_GOOGLE_CLIENT_ID=""
 ---> Using cache
 ---> bd0d761d25ba
Step 6/22 : ARG VITE_BLOOM_URL="https://workspace-preview.neo4j.io/workspace/explore?connectURL={CONNECT_URL}&search=Show+me+a+graph&featureGenAISuggestions=true&featureGenAISuggestionsInternal=true"
 ---> Using cache
 ---> a885a45b6f9f
Step 7/22 : ARG VITE_TIME_PER_PAGE=50
 ---> Using cache
 ---> 7f58b6c08337
Step 8/22 : ARG VITE_LARGE_FILE_SIZE=5242880
 ---> Using cache
 ---> a60683d2fcd7
Step 9/22 : ARG VITE_CHUNK_SIZE=5242880
 ---> Using cache
 ---> dcdbb7928a29
Step 10/22 : ARG VITE_CHAT_MODES=""
 ---> Using cache
 ---> 2b781b8cb3b6
Step 11/22 : ARG VITE_ENV="DEV"
 ---> Using cache
 ---> be34c1ebfcc2
Step 12/22 : ARG VITE_BATCH_SIZE=2
 ---> Using cache
 ---> dc7c437eca6e
Step 13/22 : WORKDIR /app
 ---> Using cache
 ---> 5e86f4b2d4d3
Step 14/22 : COPY package.json yarn.lock ./
 ---> Using cache
 ---> f97d7c868c50
Step 15/22 : RUN yarn install
 ---> Using cache
 ---> 44266eb088cf
Step 16/22 : COPY . ./
 ---> Using cache
 ---> 422a9cc20583
Step 17/22 : RUN VITE_BACKEND_API_URL=$VITE_BACKEND_API_URL     VITE_REACT_APP_SOURCES=$VITE_REACT_APP_SOURCES     VITE_LLM_MODELS=$VITE_LLM_MODELS     VITE_GOOGLE_CLIENT_ID=$VITE_GOOGLE_CLIENT_ID     VITE_BLOOM_URL=$VITE_BLOOM_URL     VITE_CHUNK_SIZE=$VITE_CHUNK_SIZE     VITE_TIME_PER_PAGE=$VITE_TIME_PER_PAGE     VITE_ENV=$VITE_ENV     VITE_LARGE_FILE_SIZE=${VITE_LARGE_FILE_SIZE}     VITE_CHAT_MODES=$VITE_CHAT_MODES     VITE_BATCH_SIZE=$VITE_BATCH_SIZE     yarn run build
 ---> Running in 872beb68c96f
yarn run v1.22.22
$ tsc && vite build
src/components/FileTable.tsx(38,10): error TS6133: 'ArrowPathIconSolid' is declared but its value is never read.
src/components/FileTable.tsx(52,73): error TS6133: 'onRetry' is declared but its value is never read.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'frontend' failed to build: The command '/bin/sh -c VITE_BACKEND_API_URL=$VITE_BACKEND_API_URL     VITE_REACT_APP_SOURCES=$VITE_REACT_APP_SOURCES     VITE_LLM_MODELS=$VITE_LLM_MODELS     VITE_GOOGLE_CLIENT_ID=$VITE_GOOGLE_CLIENT_ID     VITE_BLOOM_URL=$VITE_BLOOM_URL     VITE_CHUNK_SIZE=$VITE_CHUNK_SIZE     VITE_TIME_PER_PAGE=$VITE_TIME_PER_PAGE     VITE_ENV=$VITE_ENV     VITE_LARGE_FILE_SIZE=${VITE_LARGE_FILE_SIZE}     VITE_CHAT_MODES=$VITE_CHAT_MODES     VITE_BATCH_SIZE=$VITE_BATCH_SIZE     yarn run build' returned a non-zero code: 2
naveen-420 commented 1 month ago

+1 Facing same issue. Any help ?

kartikpersistent commented 1 month ago

Hi @naveen-420 on which branch you facing this issue?

kartikpersistent commented 1 month ago

Fixed in DEV Branch

naveen-420 commented 1 month ago

@kartikpersistent. Facing issue on main branch. will check with dev branch. Thanks for your reply