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

yarn build失败,怎么解决? #2

Open
briteming opened this issue Jan 12, 2025 · 0 comments
Open

yarn build失败,怎么解决? #2

briteming opened this issue Jan 12, 2025 · 0 comments

Comments

@briteming
Copy link

hi。

~/isblog (master)$ yarn build
yarn run v1.22.22
$ next build && touch ./out/.nojekyll

  • info Loaded env from C:\Users\12799\isblog.env
  • info Creating an optimized production build
  • info Compiled successfully
  • info Linting and checking validity of types
  • info Collecting page data .(node:17496) [ESLINT_PERSONAL_CONFIG_SUPPRESS] DeprecationWarning: '/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '/.eslintrc.*' accidentally. (found in "..\package.json")
    (Use node --trace-deprecation ... to show where the warning was created)
  • info Collecting page data
    [= ] - info Generating static pages (0/5)- warn Entire page / deopted into client-side rendering. https://nextjs.org/docs/messages/deopted-into-client-rendering /
    [=== ] - info Generating static pages (4/5)TypeError: Cannot read properties of null (reading 'bodyHTML')
    at Post_Post (C:\Users\12799\isblog.next\server\chunks\528.js:246:57)
    at S (C:\Users\12799\isblog.next\server\chunks\481.js:6776:13)
    at Ya (C:\Users\12799\isblog.next\server\chunks\481.js:6891:21)
    at Object.toJSON (C:\Users\12799\isblog.next\server\chunks\481.js:6695:20)
    at stringify ()
    at ib (C:\Users\12799\isblog.next\server\chunks\481.js:7102:9)
    at fb (C:\Users\12799\isblog.next\server\chunks\481.js:7001:29)
    at Timeout._onTimeout (C:\Users\12799\isblog.next\server\chunks\481.js:6826:16)
    at listOnTimeout (node:internal/timers:614:17)
    at process.processTimers (node:internal/timers:549:7)

Error occurred prerendering page "/about". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of null (reading 'bodyHTML')
at Post_Post (C:\Users\12799\isblog.next\server\chunks\528.js:246:57)
at S (C:\Users\12799\isblog.next\server\chunks\481.js:6776:13)
at Ya (C:\Users\12799\isblog.next\server\chunks\481.js:6891:21)
at Object.toJSON (C:\Users\12799\isblog.next\server\chunks\481.js:6695:20)
at stringify ()
at ib (C:\Users\12799\isblog.next\server\chunks\481.js:7102:9)
at fb (C:\Users\12799\isblog.next\server\chunks\481.js:7001:29)
at Timeout._onTimeout (C:\Users\12799\isblog.next\server\chunks\481.js:6826:16)
at listOnTimeout (node:internal/timers:614:17)
at process.processTimers (node:internal/timers:549:7)

  • info Generating static pages (5/5)

Export encountered errors on following paths:
/about/page: /about
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

~/isblog (master)$

谢谢你的回复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant