Comments (3)
fork the latest code from our project, make sure your code is same as our project
@trpc/xx must be same version
Do not attempt to manually upgrade dependencies. The most stable method is to periodically synchronize with the upstream repository, or grant GitHub Actions permission to perform scheduled synchronization of code.
from autogpt-next-web.
我也遇到了vercel部署错误的问题,但是报错信息不同.
预期行为
vercel成功部署
当前行为
vercel初次部署即报错。看报错信息,应当不是api key的原因。
日志-报错段(截取自完整日志的末尾的部分,无乱码)
Failed to compile.
./src/components/MarkdownRenderer.tsx:12:21
Type error: Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Pluggable'.
Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Plugin<any[], any, any>'.
Type 'void | Transformer<Root, Root>' is not assignable to type 'void | Transformer<any, any> | undefined'.
Type 'Transformer<Root, Root>' is not assignable to type 'void | Transformer<any, any> | undefined'.
Type 'Transformer<Root, Root>' is not assignable to type 'Transformer<any, any>'.
Types of parameters 'file' and 'file' are incompatible.
Type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile/lib/index").VFile' is not assignable to type 'import("/vercel/path0/node_modules/vfile/lib/index").VFile'.
Types of property 'messages' are incompatible.
Type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile-message/lib/index").VFileMessage[]' is not assignable to type 'import("/vercel/path0/node_modules/vfile-message/lib/index").VFileMessage[]'.
Property 'position' is missing in type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile-message/lib/index").VFileMessage' but required in type 'import("/vercel/path0/node_modules/vfile-message/lib/index").VFileMessage'.
10 \| <ReactMarkdown
11 \| remarkPlugins={[remarkGfm]}
> 12 \| rehypePlugins={[rehypeHighlight]}
\| ^
13 \| components={{
14 \| pre: CustomPre,
15 \| code: CustomCodeBlock,
Error: Command "npm run build" exited with 1
完整日志信息
[10:13:59.326] Running "vercel build"
[10:13:59.772] Vercel CLI 32.4.1
[10:14:00.107] Warning: Detected "engines": { "node": ">=18.0.0" } in your package.json
that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[10:14:00.126] Installing dependencies...
[10:14:07.920] npm WARN deprecated @types/[email protected]: This is a stub types definition. prettier provides its own type definitions, so you do not need this installed.
[10:14:26.097]
[10:14:26.098] > [email protected] postinstall
[10:14:26.098] > prisma generate
[10:14:26.098]
[10:14:28.276] Prisma schema loaded from prisma/schema.prisma
[10:14:28.833]
[10:14:28.833] ✔ Generated Prisma Client (v5.4.2) to ./node_modules/@prisma/client in 115ms
[10:14:28.834] Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
[10:14:28.834] [10:14:28.834] import { PrismaClient } from '@prisma/client' [10:14:28.834] const prisma = new PrismaClient() [10:14:28.834]
[10:14:28.834] or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
[10:14:28.834] [10:14:28.834] import { PrismaClient } from '@prisma/client/edge' [10:14:28.834] const prisma = new PrismaClient() [10:14:28.834]
[10:14:28.834]
[10:14:28.835] See other ways of importing Prisma Client: http://pris.ly/d/importing-client
[10:14:28.835]
[10:14:28.835]
[10:14:28.835] warn Versions of [email protected] and @prisma/[email protected] don't match.
[10:14:28.835] This might lead to unexpected behavior.
[10:14:28.835] Please make sure they have the same version.
[10:14:28.865]
[10:14:28.866] > [email protected] prepare
[10:14:28.866] > husky install
[10:14:28.866]
[10:14:28.959] husky - Git hooks installed
[10:14:28.986]
[10:14:28.986] added 1203 packages in 29s
[10:14:28.986]
[10:14:28.987] 300 packages are looking for funding
[10:14:28.987] run npm fund
for details
[10:14:29.021] Detected Next.js version: 13.5.5
[10:14:29.030] Detected package-lock.json
generated by npm 7+
[10:14:29.031] Running "npm run build"
[10:14:29.464]
[10:14:29.464] > [email protected] build
[10:14:29.464] > next build --no-lint
[10:14:29.464]
[10:14:29.971] ⚠ Linting is disabled
[10:14:30.141] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[10:14:30.141] This information is used to shape Next.js' roadmap and prioritize features.
[10:14:30.141] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[10:14:30.141] https://nextjs.org/telemetry
[10:14:30.141]
[10:14:30.232] Checking validity of types ...
[10:14:38.047] Failed to compile.
[10:14:38.047]
[10:14:38.047] ./src/components/MarkdownRenderer.tsx:12:21
[10:14:38.047] Type error: Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Pluggable'.
[10:14:38.047] Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Plugin<any[], any, any>'.
[10:14:38.047] Type 'void | Transformer<Root, Root>' is not assignable to type 'void | Transformer<any, any> | undefined'.
[10:14:38.047] Type 'Transformer<Root, Root>' is not assignable to type 'void | Transformer<any, any> | undefined'.
[10:14:38.047] Type 'Transformer<Root, Root>' is not assignable to type 'Transformer<any, any>'.
[10:14:38.048] Types of parameters 'file' and 'file' are incompatible.
[10:14:38.048] Type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile/lib/index").VFile' is not assignable to type 'import("/vercel/path0/node_modules/vfile/lib/index").VFile'.
[10:14:38.048] Types of property 'messages' are incompatible.
[10:14:38.048] Type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile-message/lib/index").VFileMessage[]' is not assignable to type 'import("/vercel/path0/node_modules/vfile-message/lib/index").VFileMessage[]'.
[10:14:38.048] Property 'position' is missing in type 'import("/vercel/path0/node_modules/remark-rehype/node_modules/vfile-message/lib/index").VFileMessage' but required in type 'import("/vercel/path0/node_modules/vfile-message/lib/index").VFileMessage'.
[10:14:38.048]
[10:14:38.048] �[0m �[90m 10 | �[39m �[33m<�[39m�[33mReactMarkdown�[39m�[0m
[10:14:38.048] �[0m �[90m 11 | �[39m remarkPlugins�[33m=�[39m{[remarkGfm]}�[0m
[10:14:38.048] �[0m�[31m�[1m>�[22m�[39m�[90m 12 | �[39m rehypePlugins�[33m=�[39m{[rehypeHighlight]}�[0m
[10:14:38.048] �[0m �[90m | �[39m �[31m�[1m^�[22m�[39m�[0m
[10:14:38.049] �[0m �[90m 13 | �[39m components�[33m=�[39m{{�[0m
[10:14:38.049] �[0m �[90m 14 | �[39m pre�[33m:�[39m �[33mCustomPre�[39m�[33m,�[39m�[0m
[10:14:38.049] �[0m �[90m 15 | �[39m code�[33m:�[39m �[33mCustomCodeBlock�[39m�[33m,�[39m�[0m
[10:14:38.105] Error: Command "npm run build" exited with 1
重现步骤
20231031
Go to Project Page
click on deploy
add project name
添加环境变量 openapi key
wait for deployment
error message
即使我另外手动fork项目最新的main分支,并在vercel项目中修改git到此项目,报错依旧。
from autogpt-next-web.
from autogpt-next-web.
Related Issues (20)
- 添加保存以及share的功能 HOT 3
- 在vercel部署后,运行发现输出的地方左侧一直对不齐,随着运行的task的增多,输出框部分一直在向右侧靠 HOT 1
- AutoGpt
- 怎么打开网络搜索功能? HOT 2
- auto-gpt
- 网络搜索 HOT 1
- Vercel log 中一直出现log message 超过限额的提醒 HOT 2
- TypeError: Cannot read properties of null (reading 'useContext') at useContext (/my-AutoGPT-Next/node_modules/react/cjs/react.development.js:1618:21) HOT 1
- Max loops of 25 exceeded, shutting down. 🧠 Thinking HOT 1
- 无法让AutoGPT自动在Google搜索前几页信息并获取相关字段后输出表格
- 是否支持离线的开源模型呢?
- 自动添加完任务后,卡在了思考中...如果这需要超过 30 秒,请重新开始。
- 前端界面问题 HOT 4
- 无法检索初始任务数组 HOT 4
- 在Cloudflare部署失败了 HOT 1
- Prisma problem when when running production docker compose
- 我也遇到了vercel部署错误的问题,但是报错信息不同. HOT 2
- 可以支持接入其它大模型的api接口吗
- 请问在本地部署是否支持使用代理的OPENAI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autogpt-next-web.