-
Notifications
You must be signed in to change notification settings - Fork 199
Description
im Trying to get this Running but everytime im starting it i get this Error
PS C:\Users\Nicol\llmchat> yarn dev
yarn run v1.22.22
$ next dev
▲ Next.js 14.2.3
- Local: http://localhost:3000
- Environments: .env.local
- Experiments (use with caution):
· instrumentationHook
✓ Starting...
[@sentry/nextjs] It appears you've configured a sentry.server.config.ts file. Please ensure to put this file's content into the register() function of a Next.js instrumentation hook instead. To ensure correct functionality of the SDK, Sentry.init must be called inside instrumentation.ts. Learn more about setting up an instrumentation hook in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the sentry.server.config.ts file afterward.
[@sentry/nextjs] It appears you've configured a sentry.edge.config.ts file. Please ensure to put this file's content into the register() function of a Next.js instrumentation hook instead. To ensure correct functionality of the SDK, Sentry.init must be called inside instrumentation.ts. Learn more about setting up an instrumentation hook in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the sentry.edge.config.ts file afterward.
automatically enabled Fast Refresh for 1 custom loader
✓ Ready in 2.8s
○ Compiling /chat ...
✓ Compiled /chat in 19s (8459 modules)
⚠ metadataBase property in metadata export is not set for resolving social open graph or twitter images, using "http://localhost:3000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
GET /chat 200 in 20919ms
✓ Compiled in 2.3s (3494 modules)
○ Compiling /manifest.webmanifest ...
✓ Compiled /manifest.webmanifest in 5.1s (5072 modules)
✓ Compiled (5102 modules)
GET /manifest.webmanifest 200 in 5910ms
⨯ Error: supabaseUrl is required.
at new SupabaseClient (webpack-internal:///(rsc)/./node_modules/@supabase/supabase-js/dist/module/SupabaseClient.js:53:19)
at createClient (webpack-internal:///(rsc)/./node_modules/@supabase/supabase-js/dist/module/index.js:59:12)
at eval (webpack-internal:///(rsc)/./lib/utils/supabase.ts:9:85)
at (rsc)/./lib/utils/supabase.ts (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:567:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at eval (webpack-internal:///(rsc)/./app/api/prompts/route.ts:16:78)
at (rsc)/./app/api/prompts/route.ts (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:545:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at eval (webpack-internal:///(rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fapi%2Fprompts%2Froute&page=%2Fapi%2Fprompts%2Froute&appPaths=&pagePath=private-next-app-dir%2Fapi%2Fprompts%2Froute.ts&appDir=C%3A%5CUsers%5CNicol%5Cllmchat%5Capp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=C%3A%5CUsers%5CNicol%5Cllmchat&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!:15:104)
at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fapi%2Fprompts%2Froute&page=%2Fapi%2Fprompts%2Froute&appPaths=&pagePath=private-next-app-dir%2Fapi%2Fprompts%2Froute.ts&appDir=C%3A%5CUsers%5CNicol%5Cllmchat%5Capp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=C%3A%5CUsers%5CNicol%5Cllmchat&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D! (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:556:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at webpack_exec (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:577:39)
at C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:578:777
at webpack_require.X (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:186:21)
at C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:578:47
at Object. (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:581:3)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at mod.require (C:\Users\Nicol\llmchat\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:130:18)
at requirePage (C:\Users\Nicol\llmchat\node_modules\next\dist\server\require.js:109:84)
at C:\Users\Nicol\llmchat\node_modules\next\dist\server\load-components.js:98:84
at async loadComponentsImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\load-components.js:98:26)
at async DevServer.findPageComponentsImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\next-server.js:710:36)
at async DevServer.findPageComponents (C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:577:20)
at async DevServer.renderPageComponent (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:1910:24)
at async DevServer.renderToResponseImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:1962:32)
at async DevServer.pipeImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:920:25)
at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\next-server.js:272:17)
at async DevServer.handleRequestImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:816:17)
at async C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:339:20
at async Span.traceAsyncFn (C:\Users\Nicol\llmchat\node_modules\next\dist\trace\trace.js:154:20)
at async DevServer.handleRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
at async invokeRender (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:174:21)
at async handleRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:353:24)
at async requestHandlerImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:377:13)
at async Server.requestListener (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\start-server.js:141:13) {
page: '/api/prompts'
}
○ Compiling /_error ...
✓ Compiled /_error in 1636ms (9071 modules)
GET /api/prompts 500 in 8758ms
⚠ metadataBase property in metadata export is not set for resolving social open graph or twitter images, using "http://localhost:3000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
GET /chat?_rsc=vdq9z 200 in 1860ms
GET /chat?_rsc=vdq9z 200 in 11ms
⨯ Error: supabaseUrl is required.
at new SupabaseClient (webpack-internal:///(rsc)/./node_modules/@supabase/supabase-js/dist/module/SupabaseClient.js:53:19)
at createClient (webpack-internal:///(rsc)/./node_modules/@supabase/supabase-js/dist/module/index.js:59:12)
at eval (webpack-internal:///(rsc)/./lib/utils/supabase.ts:9:85)
at (rsc)/./lib/utils/supabase.ts (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:567:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at eval (webpack-internal:///(rsc)/./app/api/prompts/route.ts:16:78)
at (rsc)/./app/api/prompts/route.ts (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:545:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at eval (webpack-internal:///(rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fapi%2Fprompts%2Froute&page=%2Fapi%2Fprompts%2Froute&appPaths=&pagePath=private-next-app-dir%2Fapi%2Fprompts%2Froute.ts&appDir=C%3A%5CUsers%5CNicol%5Cllmchat%5Capp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=C%3A%5CUsers%5CNicol%5Cllmchat&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!:15:104)
at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fapi%2Fprompts%2Froute&page=%2Fapi%2Fprompts%2Froute&appPaths=&pagePath=private-next-app-dir%2Fapi%2Fprompts%2Froute.ts&appDir=C%3A%5CUsers%5CNicol%5Cllmchat%5Capp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=C%3A%5CUsers%5CNicol%5Cllmchat&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D! (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:556:1)
at webpack_require (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:33:43)
at webpack_exec (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:577:39)
at C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:578:777
at webpack_require.X (C:\Users\Nicol\llmchat.next\server\webpack-runtime.js:186:21)
at C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:578:47
at Object. (C:\Users\Nicol\llmchat.next\server\app\api\prompts\route.js:581:3)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at mod.require (C:\Users\Nicol\llmchat\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:130:18)
at requirePage (C:\Users\Nicol\llmchat\node_modules\next\dist\server\require.js:109:84)
at C:\Users\Nicol\llmchat\node_modules\next\dist\server\load-components.js:98:84
at async loadComponentsImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\load-components.js:98:26)
at async DevServer.findPageComponentsImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\next-server.js:710:36)
at async DevServer.findPageComponents (C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:577:20)
at async DevServer.renderPageComponent (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:1910:24)
at async DevServer.renderToResponseImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:1962:32)
at async DevServer.pipeImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:920:25)
at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\next-server.js:272:17)
at async DevServer.handleRequestImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\base-server.js:816:17)
at async C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:339:20
at async Span.traceAsyncFn (C:\Users\Nicol\llmchat\node_modules\next\dist\trace\trace.js:154:20)
at async DevServer.handleRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
at async invokeRender (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:174:21)
at async handleRequest (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:353:24)
at async requestHandlerImpl (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\router-server.js:377:13)
at async Server.requestListener (C:\Users\Nicol\llmchat\node_modules\next\dist\server\lib\start-server.js:141:13) {
page: '/api/prompts'
}
GET /api/prompts 500 in 52ms
Also this error in the llmchat it self
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
Expected server HTML to contain a matching in .