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.

meow does something strange with GL

See original GitHub issue

I create a new directory then yarn add gl meow

const GL = require('gl');
const meow = require('meow');

// meow('foo');

const gl = GL(800, 600);
console.log(gl != null);

This prints true - all ok.

However when I uncomment meow('foo'), I get false. So for some reason GL returns null now. Will look more into it, but maybe you have an idea. Is meow doing any global changes to the node environment?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mificommented, Apr 13, 2020

As suggested there I upgraded to node v12.16.2 and now it works. I was running v12.11.1 before.

1reaction
mificommented, Apr 13, 2020

I did some binary search code elimination and I found that what’s causing it is this line:

https://github.com/sindresorhus/meow/blob/2954ed2e2f614952413abb91d9ee2f5286bac511/index.js#L80

@papb which OS are you on?

So basically the way to reproduce this is:

const GL = require('gl');

process.title = 'foo'

const gl = GL(320, 240);
console.log(gl != null)

Returns false

If I comment out process.title = 'foo', returns true

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Do Cats Make Weird Noises At Night? 7 Feline Sounds ...
Meowing. Did you know that cats very rarely communicate with other cats by meowing? This characteristic sound is your cat's way of telling...
Read more >
MeowTalk Cat Translator - Apps on Google Play
Each cat has their own unique vocabulary that they use to communicate with their owners consistently when in the same context. For example,...
Read more >
Why Do Kittens Meow a Lot? HELPFUL TIPS - YouTube
Your kitten is probably trying to tell you something. ... Subscribe to AnimalWised - https://goo. gl /70ZtOD AnimalWised Web ...
Read more >
The Cat's Meow! Caterwauling in Cats - VCA Animal Hospitals
The cat's meow conveys many messages. “Hello." “Let me in.” “Let me out.” “Give me food.” “Clean my litter box.” You know your...
Read more >
The cat meow | The Humane Society of the United States
Cats lack the facial expressiveness of dogs, they're generally quieter and their behaviors can be harder to interpret—but this doesn't mean that the...
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