Open mrr0b0t-0x1 opened 3 years ago
I took a closer look at how the app was getting packaged, so I started from the package.json
file which first got modified when I imported my project with electron-forge
.
So I looked at the config
section and found that electron-forge
was ignoring a bunch of files and directories. It included this glob pattern ".*.env"
, after removing this, now everything is working all good. So I guess it ignored some .env
files that are required by winston
to run.
But I would like to know, will removing this glob pattern ".*.env"
expose some sensitive .env
files in the project?
Or how could I just allow the .env
files required by winston
and ignore everything else?
Hello @mrr0b0t-0x1 i am also getting error as ../../connect not found i am using this import in elrctron.js when i am using npm run watch every thing works fine but when i run .exe file this error occurs
Hi. I'm receiving the same error but is for "logform". Running in dev mode is everything OK. after build and run EXE, the errors occurs.
My Deps:
"dependencies": {
"@quasar/extras": "^1.15.5",
"@stripe/terminal-js": "^0.11.2",
"axios": "^1.1.3",
"concurrently": "^7.6.0",
"mitt": "^3.0.0",
"moment": "^2.29.4",
"path": "^0.12.7",
"quasar": "^2.10.2",
"sass": "1.32.12",
"simple-keyboard": "^3.4.184",
"toad-scheduler": "^2.0.0",
"uuid": "^9.0.0",
"vue": "^3.2.43",
"vue-router": "^4.1.6",
"winston": "^3.10.0",
"winston-daily-rotate-file": "^4.7.1",
"winston-transport": "^4.5.0",
"zod": "^3.21.4"
},
I tried install logform as dependency and the error change to "Coul'd not find module '@colours/color/safe'.
Any Help?
Hi. I'm getting the same error. When I use the "cnpm install" install command, then the error appears. When I'm using "yarn", The error disappeared.
Copy and paste your module from devDependencies
to dependencies
Hi, someone found solution ?
Please tell us about your environment:
winston
version?winston@2
winston@3
node -v
outputs:What is the problem?
I am using winston logger in an Electron app, when I run the app with
npm start
, the logger works just fine without any errors. But when I package my app with any packager likeelectron-packager
orelectron-forge
, it gives me an error as below -What do you expect to happen instead?
The logger should work just fine as it does before packaging, this only happens when the app is run as packaged.
Other information
I don't know what else I should look for, I tried
but nothing has worked so far.
This is my
log_dat.js
file -