Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Unresolved dependencies #270

Open
gesquinca opened this issue Feb 28, 2019 · 0 comments
Open

Unresolved dependencies #270

gesquinca opened this issue Feb 28, 2019 · 0 comments

Comments

@gesquinca
Copy link

I can't get uport-connect to work on a Rollup.js project

Steps to reproduce:

yarn add uport-connect

yarn start

Then I get this output from the console:

yarn add v1.10.1
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
warning " > jest-styled-components@6.3.1" has incorrect peer dependency "styled-components@^2.0.0 || ^3.0.2".
[5/5] 📃  Building fresh packages...
success Saved lockfile.
success Saved 75 new dependencies.
info Direct dependencies
└─ uport-connect@1.1.4
info All dependencies
├─ argv-tools@0.1.1
├─ babel-plugin-module-resolver@3.2.0
├─ base64url@3.0.1
├─ catharsis@0.8.9
├─ collect-all@1.0.3
├─ command-line-args@5.0.2
├─ command-line-tool@0.8.0
├─ command-line-usage@4.1.0
├─ common-sequence@1.0.2
├─ config-master@3.1.0
├─ did-jwt@0.1.1
├─ dmd@3.0.13
├─ dom-walk@0.1.1
├─ ethjs-contract@0.1.9
├─ ethjs-filter@0.1.5
├─ ethjs-format@0.2.7
├─ ethjs-query@0.3.8
├─ ethjs-rpc@0.2.0
├─ ethjs-schema@0.2.1
├─ ethr-did-registry@0.0.3
├─ ethr-did-resolver@0.2.0
├─ find-babel-config@1.1.0
├─ for-each@0.3.3
├─ global@4.3.2
├─ handlebars@4.1.0
├─ https-did-resolver@0.1.0
├─ is-fn@1.0.0
├─ is-function@1.0.1
├─ js-sha256@0.9.0
├─ js2xmlparser@3.0.0
├─ jsdoc-api@4.0.3
├─ jsdoc-parse@3.0.1
├─ jsdoc-to-markdown@4.0.1
├─ jsdoc@3.5.5
├─ jsontokens@0.7.8
├─ key-encoder@1.1.7
├─ lodash.omit@4.5.0
├─ lodash.padend@4.6.1
├─ lodash.pick@4.4.0
├─ marked@0.3.19
├─ min-document@2.19.0
├─ mkdirp2@1.0.4
├─ mobile-detect@1.4.3
├─ nets@3.2.0
├─ object-to-spawn-args@1.1.1
├─ parse-headers@2.0.2
├─ pkg-up@2.0.0
├─ pubsub-js@1.7.0
├─ qr-image@3.2.0
├─ reduce-extract@1.0.0
├─ reduce-unique@1.0.0
├─ reduce-without@1.0.1
├─ requizzle@0.2.1
├─ reselect@3.0.1
├─ set-immediate-shim@1.0.1
├─ sort-array@2.0.0
├─ store@2.0.12
├─ stream-connect@1.0.2
├─ stream-via@1.0.4
├─ table-layout@0.4.4
├─ taffydb@2.6.2
├─ temp-path@1.0.0
├─ tweetnacl-util@0.15.0
├─ underscore-contrib@0.3.0
├─ underscore@1.6.0
├─ uport-connect@1.1.4
├─ uport-credentials@1.1.4
├─ uport-did-resolver@0.0.4
├─ uport-lite@1.0.3
├─ uport-transports@0.2.3
├─ validator@7.2.0
├─ wordwrapjs@3.0.0
├─ xhr@2.5.0
├─ xhr2@0.1.3
└─ xmlcreate@1.0.2
$ yarn run build
yarn run v1.10.1
$ rollup -c

src/index.js → dist/index.js, dist/index.es.js...
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'buffer' over local alternative at '/Users/gesq/_files/consensys/literate-sniffle/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
(!) Unresolved dependencies
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
buffer (imported by node_modules/mnid/lib/index.js, node_modules/did-jwt/lib/Digest.js, node_modules/did-jwt/lib/SignerAlgorithm.js, commonjs-external:buffer)
[!] Error: Unexpected token
node_modules/elliptic/package.json (2:8)
1: {
2:   "name": "elliptic",
           ^
3:   "version": "6.4.1",
4:   "description": "EC cryptography",

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

This is the project I'm trying to integrate uport-connect into:
https://github.com/ConsenSys/rimble-ui

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant