mailing: Hot reload error Ubuntu
Hi, when I start the preview server on Ubuntu 22.04 (node 14 and node 16) I get this error:
error starting change watcher TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
As a consequence the hot reload is not working and I must start and stop the preview server to reload changes.
Can you please help me?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (7 by maintainers)
Commits related to this issue
- Merge pull request #155 from sofn-xyz/152-hot-reload-error-ubuntu bugfix: #152 hot reload error ubuntu — committed to sofn-xyz/mailing by psugihara 2 years ago
hell yes. thanks for testing! 🤝
Yes, it works! Thank you for the support!
Whoops, didn’t mean to close but did merge some fixes in that made it work for me on ubuntu. In particular… watch fix: #155 bundling fix: #154
@ludovicoserrani-nautes can you let me know if this is fixed for you in the latest release 0.7.3?
Thanks!
Weird… the second time I booted mailing, I did not encounter this problem. I think there is potentially a race condition with copying files around here where we copy emails from userspace to
.mailing
. Will dig around more tomorrow.I made a branch (https://github.com/ludovicoserrani-nautes/mailing-esbuild-node/tree/mailing-0.7.2-next.1) with the upgraded package.
To start the preview server I used the command
npx mailing@0.7.2-next.1
.chokidar
seems to work, in fact the project recompiles when I save an edited file, but then I got a compilation error.The full log is:
Don’t know if this can be related to the original issue or it’s something else.
Sure! I can try that as soon as the test release is available. Thank you!
@psugihara this is starting to look more like the issues I see in #129, so I’m exciting by this thing breaking 😀
Sorry, here it is https://github.com/ludovicoserrani-nautes/mailing-esbuild-node