Skip to content

Instantly share code, notes, and snippets.

@intellix
Last active January 3, 2017 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intellix/b88d6228448f82d0d0c935631d864897 to your computer and use it in GitHub Desktop.
Save intellix/b88d6228448f82d0d0c935631d864897 to your computer and use it in GitHub Desktop.
Yarn vs Node
{
"_args": [
[
{
"raw": "apollo-client@^0.5.9",
"scope": null,
"escapedName": "apollo-client",
"name": "apollo-client",
"rawSpec": "^0.5.9",
"spec": ">=0.5.9 <0.6.0",
"type": "range"
},
"/Users/dominic/Sites/stash/xcaf/r2d2"
]
],
"_from": "apollo-client@>=0.5.9 <0.6.0",
"_id": "apollo-client@0.5.25",
"_inCache": true,
"_location": "/apollo-client",
"_nodeVersion": "5.6.0",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/apollo-client-0.5.25.tgz_1482604122145_0.16558197140693665"
},
"_npmUser": {
"name": "helfer",
"email": "helfer@meteor.com"
},
"_npmVersion": "3.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "apollo-client@^0.5.9",
"scope": null,
"escapedName": "apollo-client",
"name": "apollo-client",
"rawSpec": "^0.5.9",
"spec": ">=0.5.9 <0.6.0",
"type": "range"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/apollo-client/-/apollo-client-0.5.25.tgz",
"_shasum": "6cdf3a9d87431d5c5466766d85a3ef7c4d8b3fa0",
"_shrinkwrap": null,
"_spec": "apollo-client@^0.5.9",
"_where": "/Users/dominic/Sites/stash/xcaf/r2d2",
"author": {
"name": "Sashko Stubailo",
"email": "sashko@stubailo.com"
},
"bugs": {
"url": "https://github.com/apollostack/apollo-client/issues"
},
"dependencies": {
"@types/async": "^2.0.31",
"@types/chai": "^3.4.32",
"@types/isomorphic-fetch": "0.0.30",
"@types/lodash": "^4.14.34",
"@types/node": "^6.0.38",
"@types/promises-a-plus": "0.0.26",
"@types/redux": "^3.5.29",
"@types/sinon": "^1.16.29",
"graphql-anywhere": "^1.0.0",
"graphql-tag": "^1.1.1",
"lodash": "^4.17.2",
"redux": "^3.3.1",
"symbol-observable": "^1.0.2",
"typed-graphql": "1.0.2",
"whatwg-fetch": "^2.0.0"
},
"description": "A simple yet functional GraphQL client.",
"devDependencies": {
"@types/chai-as-promised": "0.0.28",
"@types/mocha": "^2.2.31",
"browserify": "^13.0.0",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"colors": "^1.1.2",
"es6-promise": "^4.0.4",
"fetch-mock": "^5.5.0",
"grunt": "1.0.1",
"grunt-tslint": "4.0.0",
"gzip-size": "^3.0.0",
"isomorphic-fetch": "^2.2.1",
"istanbul": "^0.4.5",
"lodash": "^4.17.1",
"minimist": "^1.2.0",
"mocha": "^3.0.0",
"pretty-bytes": "^4.0.0",
"remap-istanbul": "0.8.0",
"request": "^2.75.0",
"rxjs": "^5.0.0-beta.11",
"sinon": "^1.17.4",
"source-map-support": "^0.4.0",
"tslint": "4.2.0",
"typescript": "2.1.4",
"uglify-js": "^2.6.2",
"webpack": "^2.1.0-beta.28",
"webpack-bundle-analyzer": "^2.1.1"
},
"directories": {},
"dist": {
"shasum": "6cdf3a9d87431d5c5466766d85a3ef7c4d8b3fa0",
"tarball": "https://registry.npmjs.org/apollo-client/-/apollo-client-0.5.25.tgz"
},
"homepage": "https://github.com/apollostack/apollo-client#readme",
"keywords": [
"ecmascript",
"es2015",
"jsnext",
"javascript",
"relay",
"npm",
"react"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "glasser",
"email": "glasser@meteor.com"
},
{
"name": "helfer",
"email": "helfer@meteor.com"
},
{
"name": "sashko",
"email": "sashko@stubailo.com"
},
{
"name": "tmeasday",
"email": "tom@percolatestudio.com"
}
],
"name": "apollo-client",
"optionalDependencies": {
"@types/async": "^2.0.31",
"@types/chai": "^3.4.32",
"@types/isomorphic-fetch": "0.0.30",
"@types/lodash": "^4.14.34",
"@types/node": "^6.0.38",
"@types/promises-a-plus": "0.0.26",
"@types/redux": "^3.5.29",
"@types/sinon": "^1.16.29",
"typed-graphql": "1.0.2"
},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/apollostack/apollo-client.git"
},
"scripts": {},
"typings": "./lib/src/index.d.ts",
"version": "0.5.25"
}
{
"name": "apollo-client",
"version": "0.5.25",
"description": "A simple yet functional GraphQL client.",
"main": "index.js",
"typings": "./lib/src/index.d.ts",
"repository": {
"type": "git",
"url": "apollostack/apollo-client"
},
"keywords": [
"ecmascript",
"es2015",
"jsnext",
"javascript",
"relay",
"npm",
"react"
],
"author": "Sashko Stubailo <sashko@stubailo.com>",
"license": "MIT",
"dependencies": {
"graphql-anywhere": "^1.0.0",
"graphql-tag": "^1.1.1",
"lodash": "^4.17.2",
"redux": "^3.3.1",
"symbol-observable": "^1.0.2",
"whatwg-fetch": "^2.0.0"
},
"devDependencies": {
"@types/chai-as-promised": "0.0.28",
"@types/mocha": "^2.2.31",
"browserify": "^13.0.0",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"colors": "^1.1.2",
"es6-promise": "^4.0.4",
"fetch-mock": "^5.5.0",
"grunt": "1.0.1",
"grunt-tslint": "4.0.0",
"gzip-size": "^3.0.0",
"isomorphic-fetch": "^2.2.1",
"istanbul": "^0.4.5",
"lodash": "^4.17.1",
"minimist": "^1.2.0",
"mocha": "^3.0.0",
"pretty-bytes": "^4.0.0",
"remap-istanbul": "0.8.0",
"request": "^2.75.0",
"rxjs": "^5.0.0-beta.11",
"sinon": "^1.17.4",
"source-map-support": "^0.4.0",
"tslint": "4.2.0",
"typescript": "2.1.4",
"uglify-js": "^2.6.2",
"webpack": "^2.1.0-beta.28",
"webpack-bundle-analyzer": "^2.1.1"
},
"optionalDependencies": {
"@types/async": "^2.0.31",
"@types/chai": "^3.4.32",
"@types/isomorphic-fetch": "0.0.30",
"@types/lodash": "^4.14.34",
"@types/node": "^6.0.38",
"@types/promises-a-plus": "0.0.26",
"@types/redux": "^3.5.29",
"@types/sinon": "^1.16.29",
"typed-graphql": "1.0.2"
}
}
{
"_args": [
[
{
"raw": "@types/lodash@^4.14.34",
"scope": "@types",
"escapedName": "@types%2flodash",
"name": "@types/lodash",
"rawSpec": "^4.14.34",
"spec": ">=4.14.34 <5.0.0",
"type": "range"
},
"/Users/dominic/Sites/stash/xcaf/r2d2/node_modules/apollo-client"
]
],
"_from": "@types/lodash@>=4.14.34 <5.0.0",
"_id": "@types/lodash@4.14.45",
"_inCache": true,
"_location": "/@types/lodash",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/lodash-4.14.45.tgz_1483053099157_0.6223138293717057"
},
"_npmUser": {
"name": "types",
"email": "ts-npm-types@microsoft.com"
},
"_phantomChildren": {},
"_requested": {
"raw": "@types/lodash@^4.14.34",
"scope": "@types",
"escapedName": "@types%2flodash",
"name": "@types/lodash",
"rawSpec": "^4.14.34",
"spec": ">=4.14.34 <5.0.0",
"type": "range"
},
"_requiredBy": [
"/apollo-client"
],
"_resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.45.tgz",
"_shasum": "db20238f23fa195d6fb8f9ff7988e8651fc8c302",
"_shrinkwrap": null,
"_spec": "@types/lodash@^4.14.34",
"_where": "/Users/dominic/Sites/stash/xcaf/r2d2/node_modules/apollo-client",
"author": {
"name": "Brian Zengel",
"email": "https://github.com/bczengel"
},
"dependencies": {},
"description": "TypeScript definitions for Lo-Dash",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "db20238f23fa195d6fb8f9ff7988e8651fc8c302",
"tarball": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.45.tgz"
},
"license": "MIT",
"main": "",
"maintainers": [
{
"name": "types",
"email": "ryan.cavanaugh@microsoft.com"
}
],
"name": "@types/lodash",
"optionalDependencies": {},
"peerDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typeScriptVersion": "2.0",
"typesPublisherContentHash": "a028b7241e99d9b4afa0a2c9612d64b54f0ae1b334d75d9486cd429e94dabdcd",
"version": "4.14.45"
}
{
"name": "@types/lodash",
"version": "4.14.45",
"description": "TypeScript definitions for Lo-Dash",
"license": "MIT",
"author": "Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "a028b7241e99d9b4afa0a2c9612d64b54f0ae1b334d75d9486cd429e94dabdcd",
"typeScriptVersion": "2.0"
}
@intellix
Copy link
Author

intellix commented Jan 3, 2017

Node: 7.1.0
npm: 3.10.9
yarn: 0.18.1

When installing my project with yarn, I get a bucket of can't resolve lodash/xxx errors like so:

I'm thinking that the different package.json files generated by both dependency managers are causing issues with TypeScript 2.0.x

ERROR in ./~/apollo-client-rxjs/build/src/rxify.js
Module not found: Error: Can't resolve 'lodash/isFunction' in '/Users/dominic/Sites/stash/xcaf/r2d2/node_modules/apoll
o-client-rxjs/build/src'
 @ ./~/apollo-client-rxjs/build/src/rxify.js 8:17-45
 @ ./~/apollo-client-rxjs/build/src/index.js
 @ ./~/angular2-apollo/build/src/Angular2Apollo.js
 @ ./~/angular2-apollo/build/src/index.js
 @ ./src/app/core/core.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

ERROR in ./~/apollo-client-rxjs/build/src/utils/variables.js
Module not found: Error: Can't resolve 'lodash/assign' in '/Users/dominic/Sites/stash/xcaf/r2d2/node_modules/apollo-cl
ient-rxjs/build/src/utils'
 @ ./~/apollo-client-rxjs/build/src/utils/variables.js 5:13-37
 @ ./~/apollo-client-rxjs/build/src/RxApolloClient.js
 @ ./~/apollo-client-rxjs/build/src/index.js
 @ ./~/angular2-apollo/build/src/Angular2Apollo.js
 @ ./~/angular2-apollo/build/src/index.js
 @ ./src/app/core/core.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

ERROR in ./~/apollo-client-rxjs/build/src/utils/variables.js
Module not found: Error: Can't resolve 'lodash/omit' in '/Users/dominic/Sites/stash/xcaf/r2d2/node_modules/apollo-clie
nt-rxjs/build/src/utils'
 @ ./~/apollo-client-rxjs/build/src/utils/variables.js 6:11-33
 @ ./~/apollo-client-rxjs/build/src/RxApolloClient.js
 @ ./~/apollo-client-rxjs/build/src/index.js
 @ ./~/angular2-apollo/build/src/Angular2Apollo.js
 @ ./~/angular2-apollo/build/src/index.js
 @ ./src/app/core/core.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment