Error: cannot render index view
leosuncin opened this issue · 0 comments
I installed globally and runned inside the folder that I want to share, when I tried to open in the browser the proccess die.
Executed Params
nfshare -p 1994 .
System details
Node v8.9.3
Manjaro 17.1-rc2
node-file-share v1.0.1
#################################################### File Server Launched at your localhost:1994You can start sharing on your network with IP Address: 192.168.10.105:1994
####################################################
File Server Root Folder: /home/leosuncin/Folder Name
Path Name Requested: /home/leosuncin/Folder Name
/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:598
this.templateText.replace(/[ \t]<%/gm, '<%').replace(/_%>[ \t]/gm, '_%>');
^TypeError: Cannot read property 'replace' of undefined
at Template.generateSource (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:598:25)
at Template.compile (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:509:12)
at Object.compile (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:358:16)
at handleCache (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:201:18)
at Object.exports.render (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/node_modules/ejs/lib/ejs.js:384:10)
at ReadFileContext.fs.readFile [as callback] (/home/leosuncin/.nvm/versions/node/v8.9.3/lib/node_modules/node-file-share/index.js:143:30)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)