App closes silently when cross-pakging from MacOs to Win and logging with pino
See original GitHub issueHello,
i would like to cross-pkg an app from MacOS for Windows. In the app i’m using pino as logging module. When i start the app on CMD, the app opens up and closes silently with no log output at all.
I’ve made a sandbox script:
const pino = require()'pino'
console.log('Setting up pino ...')
const log = pino({ level: 'debug', name: 'main' })
log.info('Initializing...')
process.on('error', err => console.error(err))
This command i use to pkg:
pkg -t node10-win-x64 -o ./pkg_test_win package.json
Pkging the same script on windows, it works fine.
Am i doing something wrong?
Greetz and thanks in advance, Christian
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
Applications crashing after opening - Apple Community
I just randomly started having issues yesterday and today with my macbook. Mid 2012 model that was bought new in 2014.
Read more >pino-browser: "silent" level not currently supported · Issue #266
Importing pino with Rollup, the code for silent level is not exported and still prints to console. import pino from 'pino' let logger ......
Read more >A Complete Guide to Pino Logging in Node.js - Better Stack
In this tutorial, you will learn how to create a logging service for your application with Pino. We'll discuss many of the features...
Read more >Logging with Pino and AsyncLocalStorage in Node.js
In this post, you can learn what a logging library is, why you should use it, and how to log with Pino and...
Read more >App randomly closes on macOS - NetWorx Help - SoftPerfect
Is there a way to stop this from happening? I'm quite sure this is a bug because I have been using the old...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Coincidentally I just noticed today that my issue #686 also applies on macOS, so the two are duplicate/related 😃
My issue is cross-packaging from Linux to macOS/Windows
For now I’ve reverted to pkg 4.3.8 which seems to work fine.
We were having issues building from Windows to Linux and Reverting to 4.3.8 solved our issues too.