xcatliu / pagic

A static site generator powered by Deno + React
https://pagic.org
MIT License
1.64k stars 104 forks source link

Build process does not finish #90

Closed yoshixmk closed 2 years ago

yoshixmk commented 3 years ago

Describe the bug

Why doesn't the build finish with a custom pagic.config.tsx?

Tail 10 lines in log:

...
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_header.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_layout.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_loading.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_main.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_popover.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_sidebar.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_tools.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/_utils.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/blog/_archives.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/blog/_layout.js
[Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/pagic.config.js

After write [Pagic] Write /home/runner/work/deno-x-ranking/deno-x-ranking/dist/pagic.config.js, stop to build.

To Reproduce

Build use examples/README.md

I tried including the default settings below, but the result was the same outputs.

    plugins: ["clean", "init", "md", "tsx", "script", "layout", "out", "ga"],
    watch: false,
    serve: false,
    port: 8000,

Expected behavior

If it does not use --serve or --watch, it will exit and return code 0.

Screenshots

more 27 min, Endless... :) image

Context

xcatliu commented 3 years ago

Working on it

uki00a commented 2 years ago

I also encountered this problem. It reproduced with Deno v1.14, but not with v1.10.2 :thinking:

xcatliu commented 2 years ago

Fixed in pagic@v1.5.1, please upgrade and try again

uki00a commented 2 years ago

Awesome! Thanks a lot @xcatliu!