Repository navigation
Filewatchers no longer work #10012
Unanswered
JokerMartini
asked this question in
CLI - Electron mode
Replies: 3 comments 15 replies
|
@JokerMartini it kind of looks like you're trying to run this code in the render process, which now has As razvan hinted at, you should be able to turn on node integration with: but I'd be very careful with this. There's a reason why it is (and should be) disabled by default. This is from memory as I haven't used electron mode in a few years, but I'd highly recommend reading more about the webPreferences object. |
13 replies
|
This one works for me in Qv2: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure if this is directly related to the architecture updates made to Quasar or Electron, but I noticed that Filewatchers no longer work in quasar. They all fail to trigger whether you use the node.js filewatcher fs or you import and use import chokidar from 'chokidar';
They all fail to return events that trigger and print to the console. I was wondering if anyone else is experiencing this problem?
The code below will not trigger or print anything. It will error saying the watcher does not contain a function called 'on'.
I had 2 other developers on reddit try this over a google meet call and they all experienced the same issues both with chokidar and fs packages. Any help would be much appreciated.
Side note, i can validate these methods work when used outside of the quasar framework.
All reactions