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

5.x: received empty string in local dev #1323

Open
cossssmin opened this issue Jul 31, 2024 · 0 comments · May be fixed by #1299
Open

5.x: received empty string in local dev #1323

cossssmin opened this issue Jul 31, 2024 · 0 comments · May be fixed by #1299

Comments

@cossssmin
Copy link
Member

  • Maizzle Version: 5.0.0-beta.18

Sometimes when saving changes quickly while developing locally, it can happen that there is a delay between the file being saved to disk and Maizzle reading it and compiling the template, which can result in an empty string being received by the render() method in Maizzle and an error being thrown.

This could very likely be easily fixed by using awaitWriteFinish in chokidar:

Furthermore, in some cases some change events will be emitted while the file is being written.

https://github.com/paulmillr/chokidar#performance

@cossssmin cossssmin mentioned this issue Jul 31, 2024
3 tasks
@cossssmin cossssmin linked a pull request Aug 19, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant