Open shree675 opened 1 year ago
Hi @shree675, thank you for the report
I'm not on windows 10 but maybe a few other details could help people who are on this OS to help you :
@t-fritsch Sure.
npm start
, it runs fine and the changes I make in the files are reflected in real time. But after a while, like 15 minutes or so, the file saves (I mean, using Ctrl+S) will fail to reload the webpage. It gets stuck for a while and then the above message about heap size appears. When I restart using npm start
, the application runs fine and again the same problem occurs after a while. This happens in a cycle.thanks for the details 👍 For information I'm not the owner here, just trying to help because I like this tool 🙂
Good !
& 3. : So it may be related to your specific content. I was asking about your config / slides because if it doesn't happen on a blank project (even after 15minutes) maybe providing your files could help others to pinpoint the problem.
: I'm not saying that node 16 is not supported, you're apparently the first to submit an issue with it, so it looks like it may work fine in certain cases. I was suggesting you upgrade your version to see if this issue is node related or reveal related (but yes, I think using dead versions of software is never a good idea 😅 )
@t-fritsch I would love to provide my files, but the slides contain some contents that I do not want to disclose outside my project organization. But here is my presentation config (in index.html):
<script>
Reveal.initialize({
hash: true,
backgroundTransition: "slide",
pdfSeparateFragments: true,
center: true,
width: 1020,
plugins: [
RevealMarkdown,
RevealHighlight,
RevealNotes,
RevealMath.KaTeX,
],
});
Reveal.on("fragmentshown", (event) => {
if (
event.fragment.getAttribute("data-fragment-index") === "4" &&
event.fragment.getAttribute("id") === "types"
) {
document.getElementById("highlight-0").style.color = "blue";
document.getElementById("highlight-0").style.fontWeight = "bold";
} else {
document.getElementById("highlight-0").style.color = "black";
document.getElementById("highlight-0").style.fontWeight = "normal";
}
});
</script>
And you are right about the last point, I will upgrade my node version and check.
I understand for confidentiality about your slides, please let us know if your tests with upgraded version of node fixes the problem or not
If not, maybe you could try by making a new presentation similar to your presentation but without any sensitive data inside, and see if the problem still happen. If it is the case, I could make a good starting point to help solving your issue 👍
The npm process constantly crashes upon making changes in the files and hot reloading. Here are the logs:
These constant crashes are making it difficult for me to use this framework continuously.