Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: path must be absolute or specify root to res.sendFile

// assuming index.html is in the same directory as this script

res.sendFile(__dirname + '/index.html');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #path #absolute #root
ADD COMMENT
Topic
Name
7+9 =