lalilaloe / wttab

Programmatically open Windows Terminal tab or window
MIT License
4 stars 2 forks source link

file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:145 return profile.source.split(".").pop().decapitalize(); #24

Open leopucci opened 1 year ago

leopucci commented 1 year ago
pucci@LeoPc MINGW64 /c/Arctica/infra (leonardo.pucci-feature#1727-fluxo-checkout)
$ wttab
file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:145
    return profile.source.split(".").pop().decapitalize();
                          ^

TypeError: Cannot read properties of undefined (reading 'split')
    at getProfileCommand (file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:145:27)
    at file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:150:58
    at Array.map (<anonymous>)
    at availableProfiles (file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:150:33)
    at file:///C:/Users/pucci/AppData/Roaming/npm/node_modules/wttab/index.js:178:33
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)

Node.js v19.8.1
leopucci commented 1 year ago

npm install -g causes that