mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
23 lines
420 B
JavaScript
23 lines
420 B
JavaScript
var v3Err;
|
|
try {
|
|
module.exports = require("chokidar");
|
|
return;
|
|
} catch(e) {
|
|
v3Err = e;
|
|
}
|
|
|
|
var v2Err;
|
|
try {
|
|
module.exports = require("watchpack-chokidar2");
|
|
return;
|
|
} catch(e) {
|
|
v2Err = e;
|
|
}
|
|
|
|
throw new Error(
|
|
"No version of chokidar is available. Tried chokidar@2 and chokidar@3.\n" +
|
|
"You could try to manually install any chokidar version.\n" +
|
|
"chokidar@3: " + v3Err + "\n" +
|
|
"chokidar@2: " + v2Err + "\n"
|
|
)
|