rajasegar / alacritty-themes

:rainbow: :lollipop: Themes :candy: :heart_eyes: for Alacritty: A cross-platform GPU-accelerated Terminal emulator
MIT License
699 stars 71 forks source link

TypeError: path.existsSync is not a function #19

Closed helmerdavila closed 3 years ago

helmerdavila commented 3 years ago

Solved by #18

It was a wrong call to path rather than fs

/Users/myuser/.nvm/versions/node/v14.15.4/lib/node_modules/alacritty-themes/index.js:10
      if (path.existsSync(configPath)) return configPath;
               ^

TypeError: path.existsSync is not a function
    at findExistingFile (/Users/myuser/.nvm/versions/node/v14.15.4/lib/node_modules/alacritty-themes/index.js:10:16)
    at getAlacrittyConfig (/Users/myuser/.nvm/versions/node/v14.15.4/lib/node_modules/alacritty-themes/index.js:42:10)
    at Object.<anonymous> (/Users/myuser/.nvm/versions/node/v14.15.4/lib/node_modules/alacritty-themes/index.js:46:17)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/Users/myuser/.nvm/versions/node/v14.15.4/lib/node_modules/alacritty-themes/bin/cli.js:8:51)