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

Error When Deploying with Vercel #34

Open
lyrais opened this issue Oct 18, 2024 · 0 comments
Open

Error When Deploying with Vercel #34

lyrais opened this issue Oct 18, 2024 · 0 comments

Comments

@lyrais
Copy link

lyrais commented Oct 18, 2024

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 [email protected]: 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 [email protected]: Glob versions prior to v9 are no longer supported
[05:24:26.335] npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
[05:24:27.355] npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
[05:24:27.442] npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
[05:24:28.326] npm warn deprecated @stylelint/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[05:24:29.365] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[05:24:38.432] npm warn deprecated [email protected]: 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/[email protected] 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant