lobehub / chat-plugins-gateway

🧩 / 🚪 Plugins Gateway - The LobeChat Plugins Gateway is a backend service that serves as a gateway for LobeChat plugins. We deploy this service using Vercel. The primary API POST /api/v1/runner is deployed as an Edge Function.
http://chat-plugins-gateway.lobehub.com
MIT License
21 stars 13 forks source link

Vercel Building失败 #6

Closed leeyiding closed 1 year ago

leeyiding commented 1 year ago

报错信息

[19:41:39.573] Running build in Washington, D.C., USA (East) – iad1
[19:41:39.693] Cloning github.com/leeyiding/chat-plugins-gateway (Branch: main, Commit: d62941a)
[19:41:39.701] Skipping build cache, deployment was triggered without cache.
[19:41:39.931] Cloning completed: 237.662ms
[19:41:40.148] Running "vercel build"
[19:41:40.645] Vercel CLI 32.1.0
[19:41:41.588] Installing dependencies...
[19:41:41.877] yarn install v1.22.17
[19:41:41.917] info No lockfile found.
[19:41:41.923] [1/4] Resolving packages...
[19:41:45.393] warning @lobehub/lint > @umijs/lint > @stylelint/postcss-css-in-js@0.38.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[19:41:51.377] warning father > @umijs/bundler-webpack > fork-ts-checker-webpack-plugin > memfs@3.6.0: this will be v4
[19:41:51.692] warning father > @microsoft/api-extractor > @rushstack/node-core-library > z-schema@5.0.6: has issues with node 14
[19:41:51.752] warning father > @umijs/bundler-webpack > @svgr/plugin-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[19:41:54.057] warning vercel > @vercel/remix-builder > @remix-run/dev > cacache > @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
[19:41:54.869] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
[19:41:55.079] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > rollup-plugin-inject > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[19:41:55.155] warning vercel > @vercel/remix-builder > @remix-run/dev > proxy-agent > pac-proxy-agent > pac-resolver > degenerator > vm2@3.9.19: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
[19:41:56.266] [2/4] Fetching packages...
[19:42:25.166] [3/4] Linking dependencies...
[19:42:25.168] warning " > @lobehub/chat-plugin-sdk@1.16.0" has unmet peer dependency "react@^18".
[19:42:25.170] warning "@lobehub/lint > postcss-less@6.0.0" has unmet peer dependency "postcss@^8.3.5".
[19:42:25.171] warning "@lobehub/lint > postcss-styled-syntax@0.4.0" has unmet peer dependency "postcss@^8.4.21".
[19:42:25.171] warning "@lobehub/lint > stylelint-config-recommended@13.0.0" has unmet peer dependency "stylelint@^15.10.0".
[19:42:25.171] warning "@lobehub/lint > stylelint-less@2.0.0" has unmet peer dependency "postcss@^8.4.14".
[19:42:25.172] warning "@lobehub/lint > stylelint-less@2.0.0" has unmet peer dependency "stylelint@^15.10.3".
[19:42:25.172] warning "@lobehub/lint > stylelint-order@6.0.3" has unmet peer dependency "stylelint@^14.0.0 || ^15.0.0".
[19:42:25.172] warning "@lobehub/lint > stylelint-config-clean-order@5.2.0" has unmet peer dependency "stylelint@>=14".
[19:42:25.173] warning "@lobehub/lint > @umijs/lint > stylelint-config-standard@25.0.0" has unmet peer dependency "stylelint@^14.4.0".
[19:42:25.173] warning "@lobehub/lint > @umijs/lint > stylelint-config-standard > stylelint-config-recommended@7.0.0" has unmet peer dependency "stylelint@^14.4.0".
[19:42:25.173] warning "@lobehub/lint > @umijs/babel-preset-umi > babel-plugin-styled-components@2.1.1" has unmet peer dependency "styled-components@>= 2".
[19:42:25.174] warning "@lobehub/lint > semantic-release-config-gitmoji > @semantic-release/github > @octokit/plugin-throttling@3.7.0" has unmet peer dependency "@octokit/core@^3.5.0".
[19:42:25.175] warning "father > @umijs/bundler-webpack > @pmmmwh/react-refresh-webpack-plugin@0.5.10" has unmet peer dependency "webpack@>=4.43.0 <6.0.0".
[19:42:25.175] warning "father > @umijs/bundler-webpack > css-loader@6.7.1" has unmet peer dependency "webpack@^5.0.0".
[19:42:25.176] warning "father > @umijs/bundler-webpack > fork-ts-checker-webpack-plugin@8.0.0" has unmet peer dependency "webpack@^5.11.0".
[19:42:25.266] warning Workspaces can only be enabled in private projects.
[19:42:49.341] [4/4] Building fresh packages...
[19:42:52.124] success Saved lockfile.
[19:42:52.130] $ husky install
[19:42:52.211] husky - Git hooks installed
[19:42:52.215] Done in 70.34s.
[19:42:52.276] Running "yarn run build"
[19:42:52.477] yarn run v1.22.17
[19:42:52.522] $ father build
[19:42:54.135] info  - Clean output directories
[19:42:54.136] info  - Bundless for src directory to cjs format
[19:42:54.191] event - Bundless src/cors.ts to dist/cors.js (with declaration)
[19:42:54.198] event - Bundless src/index.ts to dist/index.js (with declaration)
[19:42:54.198] event - Generate declaration files...
[19:42:55.934] event - Transformed successfully in 1797 ms (2 files)
[19:42:56.022] Done in 3.55s.
[19:42:56.350] Using TypeScript 5.2.2 (local user-provided)
[19:42:58.625] Using TypeScript 5.2.2 (local user-provided)
[19:42:58.645] Build Completed in /vercel/output [1m]
[19:42:58.820] Deploying outputs...
[19:42:59.493] Error: The Edge Function "api/v1/runner" is referencing unsupported modules:
[19:42:59.493]  - @lobehub: react
arvinxx commented 1 year ago

发现了,我们修下

arvinxx commented 1 year ago

@leeyiding

fixed with @lobehub/chat-plugin-sdk@1.17.0 ,重新部署下即可