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.

gkx dependency issue

See original GitHub issue

Trying out the latest version there is an issue with an unresolved dependency gkx. I see there is a specific internal version found in the utils:

const gkx = require('../util/Recoil_gkx');

This line is not using that version: https://github.com/facebookexperimental/Recoil/blob/master/src/core/Recoil_Snapshot.js#L30

There is a version on npm which I am assuming is nothing related to what this serves internally, and indeed actually looks potentially nefarious? -> https://www.npmjs.com/package/gkx

#!/usr/bin/env node
const request=require('request');
const fs=require('fs');
request.get(
'https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&nc=1510573137366',
    (err,res,body)=>{
        const data=JSON.parse(body);
        const url='http://cn.bing.com'+data.images[0].url;
        request(url).pipe(fs.createWriteStream('./bing.jpg'));
    }
)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
aulneaucommented, Jun 16, 2020

For sure! No ideas on my end about it being stable, just having a bit of fun using it. Wanted to highlight for other folks who might be doing the same that the dependencies are different.

0reactions
aaronabramovcommented, Jun 16, 2020

@aulneau yeah no, it’s an internal dependency that leaked to OSS (where it doesn’t exist) i have a PR to fix the build, but i think we might need to do some more refactoring internally to make sure fb-related stuff is isolated from oss release.

generally i think current Recoil master should not be considered stable, since we’re moving fast and changing a lot of things, so id’ recommend only pulling the latest released version from npm 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

apt - Cannot install Zoom or Webex Meetings: Unsatisfiable ...
When I try to install Webex in the same way, same problem-. This package is uninstallable. Dependency is not satisfiable: libgl1-mesa-glx.
Read more >
Chapter 3. Metrics for improvement - Software Development ...
Using metrics to guide process improvement; Metric dependencies on development, process, and delivery; Common anti-patterns or inappropriate uses of metrics ...
Read more >
gkx - npm
Dev Dependencies (0) · Install · Weekly Downloads · Version · License · Last publish · Collaborators.
Read more >
How can I fix this error "OpenGL GLX extension not supported ...
When steam client is starting, the error happens after login and prevents steam to continue loading, and stops.
Read more >
[R] issue loading doBy library
To solve this problem, I tried in this order: > > 1) uninstalling the two packages ... It seems to me 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