Skip to content

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

@briteming

Description

@briteming

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)$

谢谢你的回复!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions