Open yi3yi4 opened 14 hours ago
👀 @yi3yi4
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Hey @yi3yi4! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! If you need anything, just ask.
I found a similar closed issue related to Azure AD authentication failure on Vercel, which might be relevant to your problem. The issue was due to the AZURE_AD_TENANT_ID
environment variable not being set correctly. Ensure that the AUTH_AZURE_AD_TENANT_ID
is correctly set in your environment variables [1].
Regarding the TypeScript error you're encountering, it seems that the tenantId
property is not recognized in the type OIDCUserConfig<MicrosoftEntraIDProfile>
. This suggests that the tenantId
might not be a valid property for this type. You may need to check the type definition for OIDCUserConfig<MicrosoftEntraIDProfile>
and ensure that tenantId
is correctly defined or used. If tenantId
is not part of the expected properties, you might need to adjust your code accordingly.
To continue talking to Dosu, mention @dosu.
📦 Environment
Vercel
📌 Version
1.22.9
💻 Operating System
Windows
🌐 Browser
Edge
🐛 Bug Description
[01:32:13.061] Running build in Washington, D.C., USA (East) – iad1 [01:32:13.223] Cloning github.com/yi3yi4/lobe-chat2 (Branch: main, Commit: 5e8fa10) [01:32:13.589] Previous build cache not available [01:32:13.995] Cloning completed: 770.716ms [01:32:14.852] Running "vercel build" [01:32:15.277] Vercel CLI 37.9.0 [01:32:15.973] Running "install" command: & { profilePhotoSize?: 48 | 64 | 96 | 120 | 240 | 360 | 432 | 504 | 648 | undefined; }'.
[01:42:18.872]
[01:42:18.873] [0m [90m 15 |[39m clientId[33m:[39m authEnv[33m.[39m[33mAZURE_AD_CLIENT_ID[39m [33m?[39m[33m?[39m process[33m.[39menv[33m.[39m[33mAUTH_AZURE_AD_ID[39m[33m,[39m[0m
[01:42:18.873] [0m [90m 16 |[39m clientSecret[33m:[39m authEnv[33m.[39m[33mAZURE_AD_CLIENT_SECRET[39m [33m?[39m[33m?[39m process[33m.[39menv[33m.[39m[33mAUTH_AZURE_AD_SECRET[39m[33m,[39m[0m
[01:42:18.873] [0m[31m[1m>[22m[39m[90m 17 |[39m tenantId[33m:[39m authEnv[33m.[39m[33mAZURE_AD_TENANT_ID[39m [33m?[39m[33m?[39m process[33m.[39menv[33m.[39m[33mAUTH_AZURE_AD_TENANT_ID[39m[33m,[39m[0m
[01:42:18.873] [0m [90m |[39m [31m[1m^[22m[39m[0m
[01:42:18.873] [0m [90m 18 |[39m [90m// Remove end[39m[0m
[01:42:18.874] [0m [90m 19 |[39m [90m// TODO(NextAuth): map unique user id to
bun install
... [01:32:16.019] bun install v1.1.30 (7996d06b) [01:32:16.034] Resolving dependencies [01:32:33.578] Resolved, downloaded and extracted [9636] [01:32:33.579] warn: incorrect peer dependency "eslint@8.57.1" [01:32:33.579] [01:32:33.579] warn: incorrect peer dependency "stylelint@15.11.0" [01:32:33.579] [01:32:33.579] warn: incorrect peer dependency "stylelint@15.11.0" [01:32:33.579] [01:32:33.580] warn: incorrect peer dependency "@octokit/core@5.2.0" [01:32:33.580] [01:32:33.580] warn: incorrect peer dependency "stylelint@15.11.0" [01:32:33.580] [01:32:33.580] warn: incorrect peer dependency "stylelint@15.11.0" [01:33:10.125] Saved lockfile [01:33:10.126] [01:33:10.127] $ husky [01:33:10.187] [01:33:10.187] + @commitlint/cli@19.5.0 [01:33:10.188] + @edge-runtime/vm@4.0.3 [01:33:10.188] + @huggingface/tasks@0.12.22 [01:33:10.188] + @lobehub/i18n-cli@1.20.0 [01:33:10.188] + @lobehub/lint@1.24.4 [01:33:10.188] + @lobehub/seo-cli@1.4.2 [01:33:10.188] + @next/bundle-analyzer@14.2.15 [01:33:10.188] + @next/eslint-plugin-next@14.2.15 [01:33:10.188] + @peculiar/webcrypto@1.5.0 [01:33:10.188] + @testing-library/jest-dom@6.6.2 [01:33:10.188] + @testing-library/react@16.0.1 [01:33:10.188] + @types/chroma-js@2.4.4 [01:33:10.188] + @types/debug@4.1.12 [01:33:10.188] + @types/diff@5.2.3 [01:33:10.188] + @types/ip@1.1.3 [01:33:10.188] + @types/json-schema@7.0.15 [01:33:10.188] + @types/lodash@4.17.11 [01:33:10.188] + @types/lodash-es@4.17.12 [01:33:10.188] + @types/node@20.16.12 [01:33:10.188] + @types/numeral@2.0.5 [01:33:10.188] + @types/pg@8.11.10 [01:33:10.188] + @types/react@18.3.11 [01:33:10.188] + @types/react-dom@18.3.1 [01:33:10.188] + @types/rtl-detect@1.0.3 [01:33:10.188] + @types/semver@7.5.8 [01:33:10.188] + @types/systemjs@6.15.1 [01:33:10.188] + @types/ua-parser-js@0.7.39 [01:33:10.188] + @types/unist@3.0.3 [01:33:10.188] + @types/uuid@10.0.0 [01:33:10.188] + @types/ws@8.5.12 [01:33:10.189] + @vitest/coverage-v8@1.2.2 [01:33:10.189] + ajv-keywords@5.1.0 [01:33:10.189] + commitlint@19.5.0 [01:33:10.189] + consola@3.2.3 [01:33:10.189] + dotenv@16.4.5 [01:33:10.189] + dpdm@3.14.0 [01:33:10.189] + drizzle-kit@0.25.0 [01:33:10.189] + eslint@8.57.1 [01:33:10.189] + eslint-plugin-mdx@2.3.4 [01:33:10.189] + eslint-plugin-unused-imports@4.0.1 [01:33:10.190] + fake-indexeddb@6.0.0 [01:33:10.190] + glob@11.0.0 [01:33:10.190] + gray-matter@4.0.3 [01:33:10.190] + happy-dom@15.7.4 [01:33:10.190] + husky@9.1.6 [01:33:10.190] + just-diff@6.0.2 [01:33:10.190] + lint-staged@15.2.10 [01:33:10.190] + lodash@4.17.21 [01:33:10.190] + markdown-table@3.0.3 [01:33:10.190] + node-fetch@3.3.2 [01:33:10.190] + node-gyp@10.2.0 [01:33:10.191] + openapi-typescript@6.7.6 [01:33:10.191] + p-map@7.0.2 [01:33:10.191] + prettier@3.3.3 [01:33:10.192] + remark-cli@11.0.0 [01:33:10.192] + remark-parse@10.0.2 [01:33:10.192] + semantic-release@21.1.2 [01:33:10.192] + serwist@9.0.9 [01:33:10.192] + stylelint@15.11.0 [01:33:10.192] + supports-color@8.1.1 [01:33:10.192] + tsx@4.19.1 [01:33:10.192] + typescript@5.6.3 [01:33:10.193] + unified@11.0.5 [01:33:10.193] + unist-util-visit@5.0.0 [01:33:10.193] + vite@5.4.9 [01:33:10.193] + vitest@1.2.2 [01:33:10.193] + vitest-canvas-mock@0.3.3 [01:33:10.193] + @ant-design/icons@5.5.1 [01:33:10.193] + @ant-design/pro-components@2.7.18 [01:33:10.193] + @anthropic-ai/sdk@0.29.2 [01:33:10.193] + @auth/core@0.34.2 [01:33:10.193] + @aws-sdk/client-bedrock-runtime@3.670.0 [01:33:10.193] + @aws-sdk/client-s3@3.674.0 [01:33:10.193] + @aws-sdk/s3-request-presigner@3.674.0 [01:33:10.193] + @azure/core-rest-pipeline@1.16.0 [01:33:10.193] + @azure/openai@1.0.0-beta.12 [01:33:10.193] + @baiducloud/qianfan@0.1.9 [01:33:10.193] + @cfworker/json-schema@2.0.1 [01:33:10.193] + @clerk/localizations@3.3.0 [01:33:10.193] + @clerk/nextjs@5.7.5 [01:33:10.193] + @clerk/themes@2.1.37 [01:33:10.193] + @codesandbox/sandpack-react@2.19.9 [01:33:10.194] + @cyntler/react-doc-viewer@1.17.0 [01:33:10.194] + @google/generative-ai@0.16.1 [01:33:10.194] + @huggingface/inference@2.8.1 [01:33:10.194] + @icons-pack/react-simple-icons@9.6.0 [01:33:10.194] + @khmyznikov/pwa-install@0.3.9 [01:33:10.194] + @langchain/community@0.2.33 [01:33:10.194] + @lobehub/chat-plugin-sdk@1.32.4 [01:33:10.194] + @lobehub/chat-plugins-gateway@1.9.0 [01:33:10.194] + @lobehub/icons@1.35.4 [01:33:10.194] + @lobehub/tts@1.25.1 [01:33:10.195] + @lobehub/ui@1.151.5 [01:33:10.195] + @neondatabase/serverless@0.10.1 [01:33:10.195] + @next/third-parties@14.2.15 [01:33:10.195] + @react-spring/web@9.7.5 [01:33:10.195] + @sentry/nextjs@7.119.2 [01:33:10.195] + @serwist/next@9.0.9 [01:33:10.195] + @t3-oss/env-nextjs@0.11.1 [01:33:10.195] + @tanstack/react-query@5.59.15 [01:33:10.195] + @trpc/client@11.0.0-rc.586 [01:33:10.195] + @trpc/next@11.0.0-rc.586 [01:33:10.195] + @trpc/react-query@11.0.0-rc.586 [01:33:10.195] + @trpc/server@11.0.0-rc.586 [01:33:10.195] + @vercel/analytics@1.3.1 [01:33:10.195] + @vercel/edge-config@1.3.0 [01:33:10.195] + @vercel/speed-insights@1.0.12 [01:33:10.195] + ahooks@3.8.1 [01:33:10.195] + ai@3.4.16 [01:33:10.195] + antd@5.21.4 [01:33:10.195] + antd-style@3.7.0 [01:33:10.195] + brotli-wasm@3.0.1 [01:33:10.195] + chroma-js@2.6.0 [01:33:10.195] + dayjs@1.11.13 [01:33:10.195] + debug@4.3.7 [01:33:10.196] + dexie@3.2.7 [01:33:10.196] + diff@5.2.0 [01:33:10.196] + drizzle-orm@0.34.1 [01:33:10.196] + drizzle-zod@0.5.1 [01:33:10.196] + fast-deep-equal@3.1.3 [01:33:10.196] + file-type@19.6.0 [01:33:10.196] + framer-motion@11.11.9 [01:33:10.196] + gpt-tokenizer@2.5.0 [01:33:10.197] + i18next@23.16.0 [01:33:10.197] + i18next-browser-languagedetector@7.2.1 [01:33:10.197] + i18next-resources-to-backend@1.2.1 [01:33:10.197] + idb-keyval@6.2.1 [01:33:10.197] + immer@10.1.1 [01:33:10.197] + ip@2.0.1 [01:33:10.198] + jose@5.9.4 [01:33:10.198] + js-sha256@0.11.0 [01:33:10.198] + jsonl-parse-stringify@1.0.3 [01:33:10.199] + langchain@0.3.2 [01:33:10.199] + langfuse@3.27.0 [01:33:10.199] + langfuse-core@3.27.0 [01:33:10.199] + lodash-es@4.17.21 [01:33:10.199] + lucide-react@0.453.0 [01:33:10.199] + mammoth@1.8.0 [01:33:10.200] + modern-screenshot@4.4.39 [01:33:10.200] + nanoid@5.0.7 [01:33:10.200] + next@14.2.8 [01:33:10.200] + next-auth@5.0.0-beta.23 [01:33:10.200] + next-mdx-remote@4.4.1 [01:33:10.200] + nextjs-toploader@3.7.15 [01:33:10.200] + numeral@2.0.6 [01:33:10.200] + nuqs@1.20.0 [01:33:10.200] + officeparser@4.2.0 [01:33:10.200] + ollama@0.5.9 [01:33:10.200] + openai@4.68.0 [01:33:10.200] + openapi-fetch@0.9.8 [01:33:10.200] + partial-json@0.1.7 [01:33:10.200] + pdf-parse@1.1.1 [01:33:10.200] + pdfjs-dist@4.4.168 [01:33:10.201] + pg@8.13.0 [01:33:10.202] + pino@9.5.0 [01:33:10.202] + polished@4.3.1 [01:33:10.202] + posthog-js@1.174.2 [01:33:10.202] + pwa-install-handler@2.6.1 [01:33:10.202] + query-string@9.1.1 [01:33:10.202] + random-words@2.0.1 [01:33:10.202] + react@18.3.1 [01:33:10.202] + react-confetti@6.1.0 [01:33:10.202] + react-dom@18.3.1 [01:33:10.202] + react-fast-marquee@1.6.5 [01:33:10.202] + react-hotkeys-hook@4.5.1 [01:33:10.202] + react-i18next@14.0.2 [01:33:10.202] + react-layout-kit@1.9.0 [01:33:10.202] + react-lazy-load@4.0.1 [01:33:10.202] + react-pdf@9.1.1 [01:33:10.202] + react-virtuoso@4.12.0 [01:33:10.202] + react-wrap-balancer@1.1.1 [01:33:10.202] + remark@14.0.3 [01:33:10.202] + remark-gfm@3.0.1 [01:33:10.202] + remark-html@15.0.2 [01:33:10.202] + request-filtering-agent@2.0.1 [01:33:10.202] + resolve-accept-language@3.1.8 [01:33:10.202] + rtl-detect@1.1.2 [01:33:10.202] + semver@7.6.3 [01:33:10.202] + sharp@0.33.5 [01:33:10.202] + shiki@1.22.0 [01:33:10.202] + stripe@15.12.0 [01:33:10.202] + superjson@2.2.1 [01:33:10.202] + svix@1.37.0 [01:33:10.202] + swr@2.2.5 [01:33:10.202] + systemjs@6.15.1 [01:33:10.203] + ts-md5@1.3.1 [01:33:10.203] + ua-parser-js@1.0.39 [01:33:10.203] + unstructured-client@0.18.1 [01:33:10.203] + url-join@5.0.0 [01:33:10.203] + use-merge-value@1.2.0 [01:33:10.203] + utility-types@3.11.0 [01:33:10.203] + uuid@10.0.0 [01:33:10.203] + ws@8.18.0 [01:33:10.203] + y-protocols@1.0.6 [01:33:10.203] + y-webrtc@10.3.0 [01:33:10.203] + yaml@2.6.0 [01:33:10.203] + yjs@13.6.20 [01:33:10.203] + zod@3.23.8 [01:33:10.203] + zustand@4.5.5 [01:33:10.203] + zustand-utils@1.3.2 [01:33:10.203] [01:33:10.203] 2616 packages installed [54.20s] [01:33:10.203] [01:33:10.203] Blocked 7 postinstalls. Runbun pm untrusted
for details. [01:33:10.243] Detected Next.js version: 14.2.8 [01:33:10.254] Running "bun run build" [01:33:10.259] $ next build [01:33:11.124] Attention: Next.js now collects completely anonymous telemetry regarding usage. [01:33:11.125] This information is used to shape Next.js' roadmap and prioritize features. [01:33:11.125] 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: [01:33:11.125] https://nextjs.org/telemetry [01:33:11.126] [01:33:11.194] ▲ Next.js 14.2.8 [01:33:11.194] [01:33:11.296] Creating an optimized production build ... [01:33:11.855] ○ (serwist) The service worker will not be automatically registered, please call 'window.serwist.register()' in 'componentDidMount' or 'useEffect'. [01:33:11.862] ✓ (serwist) Bundling the service worker script with the URL '/sw.js' and the scope '/'... [01:40:01.299] ✓ Compiled successfully [01:40:01.301] Linting and checking validity of types ... [01:42:18.867] Failed to compile. [01:42:18.868] [01:42:18.871] ./src/libs/next-auth/sso-providers/azure-ad.ts:17:5 [01:42:18.872] Type error: Object literal may only specify known properties, and 'tenantId' does not exist in type 'OIDCUserConfigproviderAccountId
field[39m[0m [01:42:18.874] [0m [90m 20 |[39m 01:42:19.664 {[39m[0m [01:42:19.664] error: script "build" exited with code 1 [01:42:19.678] Error: Command "bun run build" exited with 1 [01:42:23.799]📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response