Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 错误报告 本地启动报错 #132

Open
AmosWong1998 opened this issue Jun 27, 2023 · 3 comments
Open

🐞 错误报告 本地启动报错 #132

AmosWong1998 opened this issue Jun 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@AmosWong1998
Copy link

AmosWong1998 commented Jun 27, 2023

错误报告 🐞

异常信息:
event - compiled client and server successfully in 2.9s (2115 modules)
wait - compiling...
event - compiled successfully in 723 ms (1977 modules)
wait - compiling /404 (client and server)...
event - compiled client and server successfully in 548 ms (2118 modules)
Error: either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!
at createBrowserSupabaseClient (D:\Work\BibiGPT\node_modules@supabase\auth-helpers-nextjs\dist\index.js:307:11)
at eval (webpack-internal:///./pages/_app.tsx:60:172)
at useReducer (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5079:57)
at Object.useState (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5017:10)
at useState (D:\Work\BibiGPT\node_modules\react\cjs\react.development.js:1622:21)
at MyApp (webpack-internal:///./pages/_app.tsx:60:77)
at renderWithHooks (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5658:16)
at renderIndeterminateComponent (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5731:15)
at renderElement (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5946:7)
at renderNodeDestructiveImpl (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6104:11)
at renderNodeDestructive (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6076:14)
at renderIndeterminateComponent (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5785:7)
at renderElement (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5946:7)
at renderNodeDestructiveImpl (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6104:11)
at renderNodeDestructive (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6076:14)
at renderNode (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6259:12)
at renderChildrenArray (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6211:7)
at renderNodeDestructiveImpl (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6141:7)
at renderNodeDestructive (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:6076:14)
at renderElement (D:\Work\BibiGPT\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5971:9)
at renderNodeDestructiveImpl (D:\Work\BibiGPT\node_modules\rea

错误描述 🤔

已经在项目的.example.env文件中配置了NEXT_PUBLIC_SUPABASE_URL和NEXT_PUBLIC_SUPABASE_ANON_KEY属性,但是启动还是报错,报错的大意是没有配置这两个属性:
image

image
@AmosWong1998 AmosWong1998 added the bug Something isn't working label Jun 27, 2023
@UNICKCHENG
Copy link
Contributor

@AmosWong1998.example.env 文件名改成 .env

@AmosWong1998
Copy link
Author

@AmosWong1998.example.env 文件名改成 .env

感谢大哥这个问题已经解决了,但是有个新的报错:
Error [NextFontError]: Failed to fetch Inter from Google Fonts.
at nextFontError (D:\Work\BibiGPT\node_modules@next\font\dist\utils.js:55:17)
at downloadGoogleFonts (D:\Work\BibiGPT\node_modules@next\font\dist\google\loader.js:87:39)
at D:\Work\BibiGPT\node_modules\next\dist\build\webpack\loaders\next-font-loader\index.js:52:99
at async Span.traceAsyncFn (D:\Work\BibiGPT\node_modules\next\dist\trace\trace.js:79:20)
error - Failed to download Inter from Google Fonts. Using fallback font instead.
Error [NextFontError]: Failed to fetch Poppins from Google Fonts.
at nextFontError (D:\Work\BibiGPT\node_modules@next\font\dist\utils.js:55:17)
at downloadGoogleFonts (D:\Work\BibiGPT\node_modules@next\font\dist\google\loader.js:87:39)
at D:\Work\BibiGPT\node_modules\next\dist\build\webpack\loaders\next-font-loader\index.js:52:99
at async Span.traceAsyncFn (D:\Work\BibiGPT\node_modules\next\dist\trace\trace.js:79:20)
error - Failed to download Poppins from Google Fonts. Using fallback font instead.
error - ./node_modules/@supabase/auth-helpers-nextjs/dist/index.js:207:14
Module not found: Can't resolve 'console'

Import trace for requested module:
./pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found
wait - compiling...
error - ./node_modules/@supabase/auth-helpers-nextjs/dist/index.js:207:14
Module not found: Can't resolve 'console'

Import trace for requested module:
./pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found
wait - compiling /_error (client and server)...
Error [NextFontError]: Failed to fetch Inter from Google Fonts.
at nextFontError (D:\Work\BibiGPT\node_modules@next\font\dist\utils.js:55:17)
at downloadGoogleFonts (D:\Work\BibiGPT\node_modules@next\font\dist\google\loader.js:87:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async D:\Work\BibiGPT\node_modules\next\dist\build\webpack\loaders\next-font-loader\index.js:52:93
at async Span.traceAsyncFn (D:\Work\BibiGPT\node_modules\next\dist\trace\trace.js:79:20)
error - Failed to download Inter from Google Fonts. Using fallback font instead.
Error [NextFontError]: Failed to fetch Poppins from Google Fonts.
at nextFontError (D:\Work\BibiGPT\node_modules@next\font\dist\utils.js:55:17)
at downloadGoogleFonts (D:\Work\BibiGPT\node_modules@next\font\dist\google\loader.js:87:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async D:\Work\BibiGPT\node_modules\next\dist\build\webpack\loaders\next-font-loader\index.js:52:93
at async Span.traceAsyncFn (D:\Work\BibiGPT\node_modules\next\dist\trace\trace.js:79:20)
error - Failed to download Poppins from Google Fonts. Using fallback font instead.
error - ./node_modules/@supabase/auth-helpers-nextjs/dist/index.js:207:14
Module not found: Can't resolve 'console'

Import trace for requested module:
./pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found

本机的node版本是18.16.1

@UNICKCHENG
Copy link
Contributor

@AmosWong1998 网络问题。如果只是部署的话,可以直接使用 vercel,如果想运行一遍代码,可以使用 codespace
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants