WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

There is a problem starting wren-ui with source code

Open leap233 opened this issue 7 months ago • 0 comments

When I choose to start wren-ui from source code, the front-end project responds very slowly

My startup command is npm run dev

Sometimes this error occurs: [2025-05-16T07:41:24.505] [INFO] PRQ Background Tracker - Recommend question background tracker started ⨯ ReferenceError: Cannot access 'AskingService' before initialization at Module.AskingService (webpack-internal:///(api)/./src/apollo/server/services/askingService.ts:4:60) at WEBPACK_REEXPORT_OBJECT. [as AskingService] (webpack-internal:///(api)/./src/apollo/server/services/index.ts:31:259) at initComponents (webpack-internal:///(api)/./src/common.ts:100:77) at eval (webpack-internal:///(api)/./src/common.ts:190:20) ○ Compiling /_error ... ✓ Compiled /_error in 1503ms (11754 modules) POST /api/graphql 500 in 3414ms

When I build, an error was reported (my node version is 18.xx): $ npm run build

[email protected] build NODE_OPTIONS=--max-old-space-size=8192 next build

▲ Next.js 14.2.26

  • Environments: .env.local

Linting and checking validity of types ..Failed to compile.

./src/utils/errorHandler.tsx:467:48 Type error: Argument of type 'GraphQLFormattedError' is not assignable to parameter of type 'GraphQLError'. Type 'GraphQLFormattedError' is missing the following properties from type 'GraphQLError': nodes, source, positions, originalError, and 3 more.

465 | if (error.graphQLErrors) { 466 | for (const err of error.graphQLErrors) {

467 | errorHandlers.get(operationName)?.handle(err); | ^ 468 | } 469 | } 470 | }; Next.js build worker exited with code: 1 and signal: null

========================================= This is my .env.local file (other configuration files have not changed)

DB_TYPE=sqlite SQLITE_FILE=db.sqlite3 OTHER_SERVICE_USING_DOCKER=true EXPERIMENTAL_ENGINE_RUST_VERSION=false

If you need any information, please let me know

leap233 avatar May 16 '25 07:05 leap233