frankhale / electron-with-express

A simple app that demonstrates spawning an Express app from Electron
MIT License
643 stars 147 forks source link

Only loading when I packaged using packager and run the exe file. it is not loading the ejs file. #52

Closed iolathief108 closed 10 months ago

iolathief108 commented 10 months ago

Only loading when I packaged using packager and run the exe file. it is not loading the ejs file.

packager command: electron-packager . SmartPawnActivator --platform=win32 --arch=x64 --out=dist1 --asar --overwrite

and when I tried to get localhost:3000 it is not working.

frankhale commented 10 months ago

I just tested packing and everything is working on my end. Can you provide more info about your specific setup?

image

iolathief108 commented 10 months ago

It worked with NPM, I don't think it works with Yarn

frankhale commented 10 months ago

@iolathief108 I just tried with Yarn and everything worked as expected for me. If you can provide some info about how it's working for you then maybe I can assist in fixing it.