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

Zola 0.19 and ViteJs don't go together well? #2563

Closed
gacallea opened this issue Jul 1, 2024 · 17 comments
Closed

Zola 0.19 and ViteJs don't go together well? #2563

gacallea opened this issue Jul 1, 2024 · 17 comments
Labels

Comments

@gacallea
Copy link

gacallea commented Jul 1, 2024

Bug Report

I have been using Zola as CMS with custom templates/html + daisyUI for my label site since Zola 0.17 and everything ran smoothly until 0.19. I haven't been able to serve (to add content) nor deploy my site since.

Environment

macOS Sonoma 14.5
Zola version: 0.19.1 (installed with brew)

Expected Behavior

Zola + Vitejs should just work together as they did until 0.18.x

Current Behavior

I run zola serve and vite serve with "dev": "ENV='development' concurrently 'vite serve' 'zola serve'" from package.json, this is the full output using RUST_BACKTRACE=full because 1 suggested it:

╰─❯ npm run dev

> [email protected] dev
> ENV='development' RUST_BACKTRACE=full concurrently 'vite serve' 'zola serve'

[1] Building site...
[1] Checking all internal links with anchors.
[1] > Successfully checked 0 internal link(s) with anchors.
[1] -> Creating 50 pages (0 orphan) and 6 sections
[1] Done in 21ms.
[1]
[1] Web server is available at http://127.0.0.1:1111/ (bound to 127.0.0.1:1111)
[1]
[1] Listening for changes in /redacted/Sites/gentlewashrecords.com/{config.toml,content,static,templates}
[1] Press Ctrl+C to stop
[1]
[0]
[0]   VITE v5.3.2  ready in 208 ms
[0]
[0]   ➜  Local:   http://localhost:5173/
[0]   ➜  Network: use --host to expose
[1] thread 'main' panicked at src/fs_utils.rs:151:9:
[1] internal error: entered unreachable code: Got a change in an unexpected path: /vite.config.js.timestamp-1719851488362-08f6db25a956e.mjs
[1] stack backtrace:
[1]    0:        0x10547e304 - __mh_execute_header
[1]    1:        0x104b33b84 - __mh_execute_header
[1]    2:        0x10546d30c - __mh_execute_header
[1]    3:        0x10547e120 - __mh_execute_header
[1]    4:        0x10547a2d4 - __mh_execute_header
[1]    5:        0x10547b8d0 - __mh_execute_header
[1]    6:        0x10547e698 - __mh_execute_header
[1]    7:        0x10547e600 - __mh_execute_header
[1]    8:        0x10547a79c - __mh_execute_header
[1]    9:        0x1056787fc - __mh_execute_header
[1]   10:        0x1049d9218 - __mh_execute_header
[1]   11:        0x1049d16e0 - __mh_execute_header
[1]   12:        0x1049dd024 - __mh_execute_header
[1]   13:        0x10498a8f0 - __mh_execute_header
[1]   14:        0x1049e9664 - __mh_execute_header
[1] zola serve exited with code 101
^C[0] vite serve exited with code SIGINT

Step to reproduce

Easier said than done. I can give access to the private repo to Zola team for complete details and possibly replication.

I am available for any more details (like package.json, configs, etc...) on request. I didn't want to spam.

@Keats Keats added the bug label Jul 1, 2024
@Keats
Copy link
Collaborator

Keats commented Jul 1, 2024

That's a bug, this file change should be ignored but isn't for some reason.

Are those vite.config.js.timestamp-1719851488362-08f6db25a956e.mj files in the /redacted/Sites/gentlewashrecords.com/ directory?

@gacallea
Copy link
Author

gacallea commented Jul 1, 2024 via email

@Keats
Copy link
Collaborator

Keats commented Jul 1, 2024

Is the repo available somewhere?

@gacallea
Copy link
Author

gacallea commented Jul 1, 2024 via email

@eberkund
Copy link

eberkund commented Jul 3, 2024

I have the same issue with Vite. Let me know if I can be of any help.

@Keats
Copy link
Collaborator

Keats commented Jul 3, 2024

Is there a repo somewhere I can use to debug? Even a very basic version with the minimum setup to reproduce the issue

@eberkund
Copy link

eberkund commented Jul 4, 2024

Is there a repo somewhere I can use to debug? Even a very basic version with the minimum setup to reproduce the issue

I sent you an invite to my private repo.

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2024

npm run watch works for me in your repo, it picks up the changes to markdown or TS

@gacallea
Copy link
Author

gacallea commented Jul 4, 2024

@Keats I've invited you to my repo too. I hope this can help.

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2024

Yep i can reproduce with yours, thanks.

@gacallea
Copy link
Author

gacallea commented Jul 4, 2024

I haven't been able to update the config.toml for 0.19 because of the bug but I am sure you have figured that out :)

generate_feeds = true
feed_filenames = ["atom.xml"]

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2024

That should be fixed on the next branch

@gacallea
Copy link
Author

gacallea commented Jul 4, 2024

That should be fixed on the next branch

that was quick! whoop whoop!

Thank you so very much indeed for this and for zola :)

@gacallea
Copy link
Author

gacallea commented Jul 4, 2024

ps: let me know when I can remove the collaborator status. please.

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2024

You can remove me

reujab pushed a commit to reujab/zola that referenced this issue Aug 14, 2024
@Keats Keats closed this as completed in 1cc3ad3 Aug 15, 2024
@gacallea
Copy link
Author

Hi @Keats is it only me or 0.19.2 now doesn't load css at all?

Screenshot 2024-08-16 at 1 27 28 PM

let me know how I can help/test please.

@gacallea
Copy link
Author

nevermind... it was my error!

thanks for fixing this!

berdandy pushed a commit to berdandy/azola that referenced this issue Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants