Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings to get rid of #1707

Closed
rgbkrk opened this issue May 22, 2017 · 8 comments
Closed

Warnings to get rid of #1707

rgbkrk opened this issue May 22, 2017 · 8 comments
Labels
outdated workflow: issue should stay closed

Comments

@rgbkrk
Copy link
Member

rgbkrk commented May 22, 2017

WARNING in ./~/spawn-sync/lib/spawn-sync.js
Module not found: Error: Can't resolve 'try-thread-sleep' in '/Users/kylek/code/src/github.com/nteract/nteract/node_modules/spawn-sync/lib'
 @ ./~/spawn-sync/lib/spawn-sync.js 10:10-37
 @ ./~/spawn-sync/index.js
 @ ./~/sync-request/index.js
 @ ./~/datalib/src/import/load.js
 @ ./~/datalib/src/index.js
 @ ./~/vega/src/transforms/Parameter.js
 @ ./~/vega/index.js
 @ ./~/vega-embed/src/embed.js
 @ ./packages/transform-vega/lib/index.js
 @ ./packages/transforms-full/lib/index.js
 @ ./src/notebook/components/notebook.js
 @ ./src/notebook/index.js

WARNING in ./~/encoding/lib/iconv-loader.js
9:12-34 Critical dependency: the request of a dependency is an expression

WARNING in ./~/ajv/lib/async.js
96:20-33 Critical dependency: the request of a dependency is an expression

WARNING in ./~/ajv/lib/async.js
119:15-28 Critical dependency: the request of a dependency is an expression

WARNING in ./~/ajv/lib/compile/index.js
13:21-34 Critical dependency: the request of a dependency is an expression

The first one comes from vega, I'm not sure what the dep is for.

The second is from our jsonschema validator, ajv.

@rgbkrk
Copy link
Member Author

rgbkrk commented Dec 17, 2017

These warnings are still here, mostly just annoying.

@stale
Copy link

stale bot commented Apr 12, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 12, 2018
@rgbkrk rgbkrk removed the wontfix label Apr 13, 2018
@rgbkrk
Copy link
Member Author

rgbkrk commented Apr 13, 2018

We should totally figure this one out, I don't like people having to read warnings and wondering if it's the thing that is breaking their setup (when it's usually not).

@BenRussert
Copy link
Member

I looked into the warning below and think it is related to this closed cross-sync issue

nteract:     WARNING in /home/ben/Documents/nteract/node_modules/cross-spawn/index.js
nteract:     Module not found: Error: Can't resolve 'spawn-sync' in '/home/ben/Documents/nteract/node_modules/cross-spawn'
nteract:      @ /home/ben/Documents/nteract/node_modules/cross-spawn/index.js
...

@rgbkrk
Copy link
Member Author

rgbkrk commented Jun 13, 2018

Here's all the packages that depend on cross-spawn in our monorepo:

$ npm ls cross-spawn
nteract-monorepo@0.0.0 /Users/kylek/code/src/github.com/nteract/nteract
├─┬ cross-env@5.1.6
│ └── cross-spawn@5.1.0
├─┬ eslint@4.19.1
│ └── cross-spawn@5.1.0  deduped
├─┬ lerna@2.11.0
│ └─┬ execa@0.8.0
│   └── cross-spawn@5.1.0  deduped
├─┬ lint-staged@7.1.3
│ └─┬ execa@0.9.0
│   └── cross-spawn@5.1.0  deduped
├─┬ next@5.1.0
│ └── cross-spawn@5.1.0  deduped
├─┬ react-styleguidist@7.0.17
│ └─┬ react-dev-utils@5.0.1
│   └── cross-spawn@5.1.0  deduped
├─┬ shell-env@1.0.0
│ └─┬ execa@0.8.0
│   └── cross-spawn@5.1.0  deduped
├─┬ webpack-cli@2.1.5
│ ├── cross-spawn@6.0.5
│ ├─┬ yeoman-environment@2.2.0
│ │ └── cross-spawn@6.0.5
│ └─┬ yeoman-generator@2.0.5
│   └── cross-spawn@6.0.5
└─┬ yargs@11.0.0
  └─┬ os-locale@2.1.0
    └─┬ execa@0.7.0
      └── cross-spawn@5.1.0  deduped

@rgbkrk
Copy link
Member Author

rgbkrk commented Jun 13, 2018

The warnings come from within webpack land -- perhaps what we need to figure out is why this dep is being webpacked since we don't want this on the frontend anyways. Actually... I think I know... It's in the main process code within prepare-env.js

@rgbkrk
Copy link
Member Author

rgbkrk commented Jun 13, 2018

It looks like this is addressed in cross-spawn@6.0.0

Probably the most relevant PR I made for this, since it's for shell-env: sindresorhus/shell-env#7

@lgeiger
Copy link
Member

lgeiger commented Oct 21, 2018

These warnings are gone since the latest vega upgrades.

@lgeiger lgeiger closed this as completed Oct 21, 2018
@lock lock bot added the outdated workflow: issue should stay closed label Jan 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated workflow: issue should stay closed
Projects
None yet
Development

No branches or pull requests

3 participants