Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

export fails generating static pages #9

Description

@hipitihop

Environment:
host: Ubuntu 20.04.3
yarn: v1.22.17
logseq: Desktop 0.6.2

Error:

yarn export
yarn run v1.22.17
$ yarn build && next export
$ next build
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - Checking validity of types  

./src/components/LSBlockReference.js
13:7  Warning: passHref is missing. See https://nextjs.org/docs/messages/link-passhref  @next/next/link-passhref

./src/components/LSLink.js
23:12  Warning: Do not use <img>. Use Image from 'next/image' instead. See https://nextjs.org/docs/messages/no-img-element.  @next/next/no-img-element

./src/components/LSLinkedReferences.js
34:5  Warning: passHref is missing. See https://nextjs.org/docs/messages/link-passhref  @next/next/link-passhref

./src/components/Layout.js
6:5  Warning: passHref is missing. See https://nextjs.org/docs/messages/link-passhref  @next/next/link-passhref

./src/components/PageLink.js
41:5  Warning: passHref is missing. See https://nextjs.org/docs/messages/link-passhref  @next/next/link-passhref

./src/components/PagesNav.js
43:11  Warning: passHref is missing. See https://nextjs.org/docs/messages/link-passhref  @next/next/link-passhref

Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules

info  - Creating an optimized production build  
info  - Compiled successfully
info  - Collecting page data  
[  ==] info  - Generating static pages (2/6)
Error occurred prerendering page "/pages/Animals". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read property 'map' of undefined
    at LSInlines (/home/userautomation/logseq-publish/.next/server/chunks/421.js:520:18)
    at d (/home/user/automation/logseq-publish/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
    at bb (/home/user/automation/logseq-publish/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
    at a.b.render (/home/user/automation/logseq-publish/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
    at a.b.read (/home/user/automation/logseq-publish/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
    at exports.renderToString (/home/user/automation/logseq-publish/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
    at Object.renderPage (/home/user/automation/logseq-publish/node_modules/next/dist/next-server/server/render.js:53:854)
    at Function.getInitialProps (/home/user/automation/logseq-publish/.next/server/pages/_document.js:539:19)
    at loadGetInitialProps (/home/user/automation/logseq-publish/node_modules/next/dist/next-server/lib/utils.js:5:101)
    at renderToHTML (/home/user/automation/logseq-publish/node_modules/next/dist/next-server/server/render.js:53:1145)
info  - Generating static pages (6/6)

> Build error occurred
Error: Export encountered errors on following paths:
	/pages/Animals
    at /home/user/automation/logseq-publish/node_modules/next/dist/export/index.js:31:1106
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Span.traceAsyncFn (/home/user/automation/logseq-publish/node_modules/next/dist/telemetry/trace/trace.js:6:584)
    at async /home/user/automation/logseq-publish/node_modules/next/dist/build/index.js:43:49
    at async Span.traceAsyncFn (/home/user/automation/logseq-publish/node_modules/next/dist/telemetry/trace/trace.js:6:584)
    at async /home/user/automation/logseq-publish/node_modules/next/dist/build/index.js:25:1529
    at async Span.traceAsyncFn (/home/user/automation/logseq-publish/node_modules/next/dist/telemetry/trace/trace.js:6:584)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions