You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
描述遇到的问题
vercel首次部署时报错,似乎是./components/CustomContextMenu.js的问题 [13:16:14.267] Running build in Washington, D.C., USA (East) – iad1 [13:16:14.401] Cloning github.com/agecspnt/NotionNext (Branch: main, Commit: 66a6143) [13:16:14.415] Skipping build cache, deployment was triggered without cache. [13:16:14.867] Cloning completed: 466.38ms [13:16:15.165] Running "vercel build" [13:16:15.641] Vercel CLI 33.2.0 [13:16:16.063] Installing dependencies... [13:16:17.250] npm WARN old lockfile [13:16:17.251] npm WARN old lockfile The package-lock.json file was created with an old version of npm, [13:16:17.251] npm WARN old lockfile so supplemental metadata must be fetched from the registry. [13:16:17.251] npm WARN old lockfile [13:16:17.252] npm WARN old lockfile This is a one-time fix-up, please be patient... [13:16:17.252] npm WARN old lockfile [13:16:37.633] npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead [13:16:56.384] [13:16:56.384] added 675 packages in 40s [13:16:56.385] [13:16:56.385] 156 packages are looking for funding [13:16:56.385] run npm fundfor details [13:16:56.420] Detected Next.js version: 13.3.1 [13:16:56.426] Detectedpackage-lock.jsongenerated by npm 7+ [13:16:56.426] Running "npm run build" [13:16:56.953] [13:16:56.953] > notion-next@4.2.1 build [13:16:56.953] > next build [13:16:56.953] [13:16:57.209] info - Loaded env from /vercel/path0/.env.local [13:16:57.340] warn - You have enabled experimental feature (scrollRestoration) in next.config.js. [13:16:57.340] warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [13:16:57.340] [13:16:57.355] Attention: Next.js now collects completely anonymous telemetry regarding usage. [13:16:57.356] This information is used to shape Next.js' roadmap and prioritize features. [13:16:57.356] 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: [13:16:57.356] https://nextjs.org/telemetry [13:16:57.356] [13:16:57.467] info - Linting and checking validity of types... [13:17:02.059] [13:17:02.060] Failed to compile. [13:17:02.060] [13:17:02.060] ./components/CustomContextMenu.js [13:17:02.060] 106:24 Error: Missing space before opening brace. space-before-blocks [13:17:02.060] 107:5 Warning: Unexpected var, use let or const instead. no-var [13:17:02.060] 109:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.060] 109:9 Warning: Unexpected var, use let or const instead. no-var [13:17:02.060] 109:48 Error: Strings must use singlequote. quotes [13:17:02.061] 110:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 111:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 112:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 113:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 113:30 Error: Strings must use singlequote. quotes [13:17:02.061] 114:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 115:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 117:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 181:1 Error: Expected indentation of 20 spaces but found 21. indent [13:17:02.061] 197:1 Error: Expected indentation of 20 spaces but found 21. indent [13:17:02.061] 198:1 Error: Trailing spaces not allowed. no-trailing-spaces [13:17:02.062] [13:17:02.062] ./lib/lang/zh-CN.js [13:17:02.062] 11:10 Error: Missing space before value for key 'COPY'. key-spacing [13:17:02.062] [13:17:02.062] info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules [13:17:02.080] Error: Command "npm run build" exited with 1 [13:17:02.810]
相应配置
还没有部署完成
截图
环境
操作系统: windows
浏览器chrome
版本 4.2.1
The text was updated successfully, but these errors were encountered:
tangly1024
changed the title
vercel首次部署时报错,似乎是./components/CustomContextMenu.js的问题
【部署报错】vercel首次部署时报错,似乎是./components/CustomContextMenu.js的问题
Jan 31, 2024
描述遇到的问题
vercel首次部署时报错,似乎是./components/CustomContextMenu.js的问题
[13:16:14.267] Running build in Washington, D.C., USA (East) – iad1 [13:16:14.401] Cloning github.com/agecspnt/NotionNext (Branch: main, Commit: 66a6143) [13:16:14.415] Skipping build cache, deployment was triggered without cache. [13:16:14.867] Cloning completed: 466.38ms [13:16:15.165] Running "vercel build" [13:16:15.641] Vercel CLI 33.2.0 [13:16:16.063] Installing dependencies... [13:16:17.250] npm WARN old lockfile [13:16:17.251] npm WARN old lockfile The package-lock.json file was created with an old version of npm, [13:16:17.251] npm WARN old lockfile so supplemental metadata must be fetched from the registry. [13:16:17.251] npm WARN old lockfile [13:16:17.252] npm WARN old lockfile This is a one-time fix-up, please be patient... [13:16:17.252] npm WARN old lockfile [13:16:37.633] npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead [13:16:56.384] [13:16:56.384] added 675 packages in 40s [13:16:56.385] [13:16:56.385] 156 packages are looking for funding [13:16:56.385] run
npm fundfor details [13:16:56.420] Detected Next.js version: 13.3.1 [13:16:56.426] Detected
package-lock.jsongenerated by npm 7+ [13:16:56.426] Running "npm run build" [13:16:56.953] [13:16:56.953] > notion-next@4.2.1 build [13:16:56.953] > next build [13:16:56.953] [13:16:57.209] info - Loaded env from /vercel/path0/.env.local [13:16:57.340] warn - You have enabled experimental feature (scrollRestoration) in next.config.js. [13:16:57.340] warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [13:16:57.340] [13:16:57.355] Attention: Next.js now collects completely anonymous telemetry regarding usage. [13:16:57.356] This information is used to shape Next.js' roadmap and prioritize features. [13:16:57.356] 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: [13:16:57.356] https://nextjs.org/telemetry [13:16:57.356] [13:16:57.467] info - Linting and checking validity of types... [13:17:02.059] [13:17:02.060] Failed to compile. [13:17:02.060] [13:17:02.060] ./components/CustomContextMenu.js [13:17:02.060] 106:24 Error: Missing space before opening brace. space-before-blocks [13:17:02.060] 107:5 Warning: Unexpected var, use let or const instead. no-var [13:17:02.060] 109:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.060] 109:9 Warning: Unexpected var, use let or const instead. no-var [13:17:02.060] 109:48 Error: Strings must use singlequote. quotes [13:17:02.061] 110:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 111:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 112:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 113:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 113:30 Error: Strings must use singlequote. quotes [13:17:02.061] 114:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 115:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 117:1 Error: Expected indentation of 6 spaces but found 8. indent [13:17:02.061] 181:1 Error: Expected indentation of 20 spaces but found 21. indent [13:17:02.061] 197:1 Error: Expected indentation of 20 spaces but found 21. indent [13:17:02.061] 198:1 Error: Trailing spaces not allowed. no-trailing-spaces [13:17:02.062] [13:17:02.062] ./lib/lang/zh-CN.js [13:17:02.062] 11:10 Error: Missing space before value for key 'COPY'. key-spacing [13:17:02.062] [13:17:02.062] info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules [13:17:02.080] Error: Command "npm run build" exited with 1 [13:17:02.810]
相应配置
还没有部署完成
截图
环境
The text was updated successfully, but these errors were encountered: