Closed codenamedpkt closed 2 months ago
更新:
執行pnpm I && pnpm up -L && pnpm run dev
時,出現無法加載Astro設定檔案錯誤。
$ pnpm i && pnpm up -L && pnpm run build
WARN This project is configured to use v7.28.0 of pnpm. Your current pnpm is v9.0.6
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 2.9s
WARN This project is configured to use v7.28.0 of pnpm. Your current pnpm is v9.0.6
WARN 1 deprecated subdependencies found: sourcemap-codec@1.4.8
Packages: +273 -269
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------
Progress: resolved 1119, reused 1040, downloaded 0, added 271, done
dependencies:
- @astrojs/netlify 2.3.0
+ @astrojs/netlify 5.2.0
- @astrojs/node 5.3.6
+ @astrojs/node 8.2.5
- @astrojs/solid-js 2.2.1
+ @astrojs/solid-js 4.1.0
- @astrojs/vercel 3.8.2
+ @astrojs/vercel 7.5.4
- @fuyun/generative-ai 0.1.3
+ @fuyun/generative-ai 0.3.1
- @zag-js/slider 0.16.0
+ @zag-js/slider 0.48.0
- @zag-js/solid 0.16.0
+ @zag-js/solid 0.48.0
- astro 2.10.15
+ astro 4.7.0
- eslint 8.57.0
+ eslint 9.1.1
- js-sha256 0.9.0
+ js-sha256 0.11.0
- markdown-it 13.0.2
+ markdown-it 14.1.0
- solid-js 1.7.6
+ solid-js 1.8.17
- undici 5.28.4
+ undici 6.14.1
devDependencies:
- @types/markdown-it 12.2.3
+ @types/markdown-it 14.0.1
- @typescript-eslint/parser 5.62.0
+ @typescript-eslint/parser 7.7.1
- @vite-pwa/astro 0.1.6
+ @vite-pwa/astro 0.3.1
- eslint-plugin-astro 0.27.2
+ eslint-plugin-astro 1.0.3
- unocss 0.50.8
+ unocss 0.59.4
WARN Issues with peer dependencies found
.
├─┬ @evan-yang/eslint-config 1.0.9
│ ├── ✕ unmet peer eslint@^8.0.0: found 9.1.1
│ └─┬ @evan-yang/eslint-plugin 1.0.9
│ ├── ✕ unmet peer eslint@^8.0.0: found 9.1.1
│ ├─┬ @typescript-eslint/eslint-plugin 5.62.0
│ │ ├── ✕ unmet peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0": found 9.1.1
│ │ └─┬ @typescript-eslint/type-utils 5.62.0
│ │ └─┬ @typescript-eslint/utils 5.62.0
│ │ └── ✕ unmet peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0": found 9.1.1
│ ├─┬ @typescript-eslint/parser 5.62.0
│ │ └── ✕ unmet peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0": found 9.1.1
│ ├─┬ eslint-config-standard 17.1.0
│ │ └── ✕ unmet peer eslint@^8.0.1: found 9.1.1
│ ├─┬ eslint-plugin-import 2.29.1
│ │ ├── ✕ unmet peer eslint@"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8": found 9.1.1
│ │ └── ✕ unmet peer eslint@"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8": found 9.1.1
│ ├─┬ eslint-plugin-jsx-a11y 6.8.0
│ │ └── ✕ unmet peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8": found 9.1.1
│ ├─┬ eslint-plugin-promise 6.1.1
│ │ └── ✕ unmet peer eslint@"^7.0.0 || ^8.0.0": found 9.1.1
│ ├─┬ eslint-plugin-react 7.34.1
│ │ └── ✕ unmet peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8": found 9.1.1
│ ├─┬ eslint-plugin-react-hooks 4.6.2
│ │ └── ✕ unmet peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0": found 9.1.1
│ └─┬ eslint-plugin-vue 8.7.1
│ └── ✕ unmet peer eslint@"^6.2.0 || ^7.0.0 || ^8.0.0": found 9.1.1
└─┬ @typescript-eslint/parser 7.7.1
└── ✕ unmet peer eslint@^8.56.0: found 9.1.1
Done in 34.9s
WARN This project is configured to use v7.28.0 of pnpm. Your current pnpm is v9.0.6
> chatgpt-api-demo@0.0.1 build /data/data/com.termux/files/home/GeminiProChat
> astro build
[astro] Unable to load your Astro config
Missing "./edge" specifier in "@astrojs/vercel" package
Stack trace:
at e (file:///data/data/com.termux/files/home/GeminiProChat/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_terser@5.30.4/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47596:25)
at o (file:///data/data/com.termux/files/home/GeminiProChat/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_terser@5.30.4/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47596:1297)
at resolveDeepImport (file:///data/data/com.termux/files/home/GeminiProChat/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_terser@5.30.4/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:48305:31)
at Context.resolveId (file:///data/data/com.termux/files/home/GeminiProChat/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_terser@5.30.4/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47780:28)
at async TransformContext.resolve (file:///data/data/com.termux/files/home/GeminiProChat/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_terser@5.30.4/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50748:23)
ELIFECYCLE Command failed with exit code 1.
用docker或者vercel的方式部署试试。
How is Gemini Pro Chat deployed?
Others (Specify in description)
Describe the bug
用最新版NODE.js、npm組件和pnpm組件,行
run build
,不論本地、Vercel和Netlify均失敗,發生錯誤。Console Logs
Participation