-
-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
I encountered an error when trying to deploy this project using Vercel. Below are the deployment logs:
[05:22:39.346] Running build in Washington, D.C., USA (East) β iad1
[05:22:39.455] Cloning github.com/lyrais/lobe-chat-plugins (Branch: main, Commit: aea68cd)
[05:22:39.841] Previous build cache not available
[05:22:39.973] Cloning completed: 517.913ms
[05:22:40.429] Running "vercel build"
[05:22:40.840] Vercel CLI 37.9.0
[05:22:41.602] Installing dependencies...
[05:24:24.576] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[05:24:24.578] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[05:24:26.335] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[05:24:27.355] npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
[05:24:27.442] npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
[05:24:28.326] npm warn deprecated @stylelint/postcss-css-in-js@0.38.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[05:24:29.365] npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
[05:24:38.432] npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
[05:25:05.060]
[05:25:05.061] added 1763 packages in 2m
[05:25:05.061]
[05:25:05.062] 487 packages are looking for funding
[05:25:05.062] run `npm fund` for details
[05:25:05.122] Running "npm run build"
[05:25:05.282]
[05:25:05.282] > @lobehub/lobe-chat-plugins@0.0.0 build
[05:25:05.282] > bun scripts/build.ts
[05:25:05.282]
[05:25:06.973] [success] schema check pass
[05:25:06.986] [success] schema check pass
[05:25:06.993] [success] schema check pass
[05:25:06.993] [success] schema check pass
[05:25:06.993] [success] schema check pass
[05:25:06.994] [success] schema check pass
[05:25:07.216] 3 | import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
[05:25:07.217] 4 |
[05:25:07.217] 5 | import { readmeSplit } from './const';
[05:25:07.217] 6 |
[05:25:07.217] 7 | export const readJSON = (filePath) => {
[05:25:07.217] 8 | const data = readFileSync(filePath, 'utf8');
[05:25:07.218] ^
[05:25:07.218] ENOENT: No such file or directory
[05:25:07.218] errno: -2
[05:25:07.218] syscall: "open"
[05:25:07.218] path: "/vercel/path0/locales/google-cse-lobechat.zh-CN.json"
[05:25:07.218]
[05:25:07.218] at readJSON (/vercel/path0/scripts/utils.ts:8:16)
[05:25:07.218] at /vercel/path0/scripts/build.ts:28:28
[05:25:07.218] at build (/vercel/path0/scripts/build.ts:9:15)
[05:25:07.219] at /vercel/path0/scripts/build.ts:56:7
[05:25:07.219]
[05:25:07.219] Bun v1.1.30 (Linux x64 baseline)
[05:25:07.251] Error: Command "npm run build" exited with 1
[05:25:08.252]
From the logs, it appears there is an ENOENT: No such file or directory error, indicating that the file locales/google-cse-lobechat.zh-CN.json could not be found.
Do you have any suggestions on how to resolve this issue?
Thank you for your assistance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels