n-thumann / IPTV-ReStream

An app to forward source specific multicast streams via HTTP
BSD 3-Clause "New" or "Revised" License
103 stars 36 forks source link

Error occurs when I run npm run build #165

Closed HESSEBO closed 2 years ago

HESSEBO commented 2 years ago

Hi and thanks for the great project

When I run npm run build I get the following error:

error TS6059: File '/home/pi/IPTV-ReStream/IPTV-ReStream/src/app.ts' is not under 'rootDir' '/home/pi/IPTV-ReStream/src'. 'rootDir' is expected to contain all source files. The file is in the program because: Matched by include pattern '*/' in '/home/pi/IPTV-ReStream/tsconfig.json'

Please advice.

n-thumann commented 2 years ago

Hi ✌🏻 It looks like there's an issue with you local directory structure: The app.ts on your machine is at /home/pi/IPTV-ReStream/IPTV-ReStream/src/ while it's suppose to be at /home/pi/IPTV-ReStream/src/ How did you download this project? Did you cloned it from GitHub? This will likely solve itself, if you re-download it.

n-thumann commented 2 years ago

Hi, have you been able to solve this issue?

HESSEBO commented 2 years ago

Thank you for responding back to me sir. today I followed the steps directed above and everything went smooth. But just when I load the page with the port 3000 it doesn't show up on the browser. To let you know I installed the package on a remote pc and I portfowarded the ipaddress via the router and I connect to the server by a dynamic dns.

n-thumann commented 2 years ago

Have you set the HOST environment variable accordingly? The default value is 127.0.0.1, so the service won't be reachable from the outside per default (see HOST=127.0.0.1 below):

➜  IPTV-ReStream git:(main) DEBUG="iptv-restream:*" npm start

> iptv-restream@1.4.6 start
> node dist/app.js

  iptv-restream:config Config loaded: HOST=127.0.0.1, PORT=3000, MCAST_IF=0.0.0.0, XSPF_PROTOCOL=, XSPF_HOST=, XSPF_PATH_PREFIX=, ALLOW_UNKNOWN=false +0ms
  iptv-restream:server Listening on port 127.0.0.1:3000... +0ms
n-thumann commented 2 years ago

Did you managed to get it working? :)

n-thumann commented 2 years ago

Let me know, if you need further assistance. Closing this until then :)