You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Watcher process has terminated. Please ensure Node and chokidar are installed.
file:///var/www/html/vendor/keepsuit/laravel-temporal/bin/file-watcher.js:1
const chokidar = require('chokidar');
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/var/www/html/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///var/www/html/vendor/keepsuit/laravel-temporal/bin/file-watcher.js:1:18
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
The solution in file-watcher.js file change: this: const chokidar = require('chokidar'); for this: import chokidar from "chokidar";
The text was updated successfully, but these errors were encountered:
This is the full error:
Comand:
sail artisan temporal:work --watch
The solution in
file-watcher.js
file change: this:const chokidar = require('chokidar');
for this:import chokidar from "chokidar";
The text was updated successfully, but these errors were encountered: