Open ChasKane opened 1 month ago
I don't understand how your node upgrade could remotely be relevant, since Obsidian is in Electron and neither it nor hot-reload use your local node installation in any fashion. Did you recently upgrade Obsidian, perhaps? Especially an upgrade via the installer?
Actually, given the PR, does that mean that this issue was you trying to use the plugin on mobile? If so, please go ahead and close this.
After upgrading to latest
node
version (v20.16.0), I started seeing the below error in the console and noticed that hot reload wasn't working anymore (changes to other plugins'main.js
files didn't work). I'm not sure what change innode
made this happen, but addingwindow.
beforerequire("fs")
fixed it for me. Leaving the this and the reference in case this is helpful for anyone else. As I'm unsure if this is a shared issue, I'll abstain from making a fork and PR for now.Error: [hot-reload] Attempting to load NodeJS package: "fs"