rauchg / blog

https://rauchg.com
1.24k stars 175 forks source link

vc dev:error #143

Open alitayin opened 1 year ago

alitayin commented 1 year ago

Vercel CLI 30.2.3

Running Dev Command “next dev --port $PORT” ready - started server on 0.0.0.0:3000, url: http://localhost:3000 Ready! Available at http://localhost:3000 warn - You have enabled experimental features (appDir, mdxRs) in next.config.js. warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info - Thank you for testing appDir please leave your feedback at https://nextjs.link/app-feedback event - compiled client and server successfully in 1119 ms (262 modules) wait - compiling... event - compiled client and server successfully in 174 ms (262 modules) wait - compiling /middleware (client and server)... event - compiled successfully in 172 ms (59 modules) wait - compiling /page (client and server)... event - compiled client and server successfully in 2.2s (797 modules) error - node_modules/@upstash/redis/esm/platforms/nodejs.js (27:36) @ startsWith error - Error [TypeError]: Cannot read properties of undefined (reading 'startsWith') at new Redis (webpack-internal:///(sc_server)/./node_modules/@upstash/redis/esm/platforms/nodejs.js:30:37) at eval (webpack-internal:///(sc_server)/./app/redis.ts:7:15) at (sc_server)/./app/redis.ts (/Users/alita/Downloads/blogtest/blog/.next/server/app/page.js:1921:1) at webpack_require (/Users/alita/Downloads/blogtest/blog/.next/server/webpack-runtime.js:33:42) at eval (webpack-internal:///(sc_server)/./app/get-posts.ts:6:64) at (sc_server)/./app/get-posts.ts (/Users/alita/Downloads/blogtest/blog/.next/server/app/page.js:1844:1) at webpack_require (/Users/alita/Downloads/blogtest/blog/.next/server/webpack-runtime.js:33:42) at eval (webpack-internal:///(sc_server)/./app/page.tsx:9:68) at (sc_server)/./app/page.tsx (/Users/alita/Downloads/blogtest/blog/.next/server/app/page.js:1899:1) at Function.__webpack_require__ (/Users/alita/Downloads/blogtest/blog/.next/server/webpack-runtime.js:33:42) { digest: undefined } null