DEV Community

Discussion on: Build Desktop apps with the power of Angular

Collapse
 
borjalo profile image
Borja Alonso Melero

This is what it shows.
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

It seems that your win.loadFile(); has a wrong path make sure that the path at this function located the index.html of the built application usually it lives at dist/your-app-name/index.html

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

It seems that I forgot the your-app-name part at my post I'll update it.

Thread Thread
 
borjalo profile image
Borja Alonso Melero

Here is my project structure: thepracticaldev.s3.amazonaws.com/i...

And here my main.ts file:
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

Okay, dist/control-panel/index.html looks good but the output of the tsc "the main.ts file" where is it?!! I see that you have out-tsc directory if the main.js file is at this dir update you package.json replace dist/bin/main.js with dist/tsc-out/main.js.

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

Can you upload your project to GitHub? or you can refer to the repo I have mentioned at the post so you can find the right structure.

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

Tell me if you still have an issue.

Thread Thread
 
borjalo profile image
Borja Alonso Melero
Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

As I mentioned it was the output of tsc fixed here

Thread Thread
 
borjalo profile image
Borja Alonso Melero

Thank you very much!

Thread Thread
 
ahmedmkamal profile image
Ahmed Kamal

Let me know if you have any issues