question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App closes silently when cross-pakging from MacOs to Win and logging with pino

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

5reactions
AxelTerizakicommented, May 22, 2019

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.

2reactions
AntonioCunhacommented, Jun 19, 2019

We were having issues building from Windows to Linux and Reverting to 4.3.8 solved our issues too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found