Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Latest ZOS cli fails with Yarn. #1134

Closed
hickscorp opened this issue Jul 19, 2019 · 2 comments
Closed

Latest ZOS cli fails with Yarn. #1134

hickscorp opened this issue Jul 19, 2019 · 2 comments
Labels

Comments

@hickscorp
Copy link

hickscorp commented Jul 19, 2019

We're trying to update our zos and zos-lib dependencies as they are listed as outdated.

We installed @openzeppelin/upgrades (For the smartcontracts) and @openzeppelin/cli (for the zos cli binary) as a devDependency using yarn.

Before, calling yarn zos ... would work. But now:

yarn zos
yarn run v1.16.0
$ /home/doodloo/whatev/node_modules/.bin/zos
/home/doodloo/whatev/node_modules/@resolver-engine/imports-fs/build/index.js:24
    UriResolver: core_2.resolvers.UriResolver,
                                  ^

TypeError: Cannot read property 'UriResolver' of undefined
    at Object.<anonymous> (/home/doodloo/whatev/node_modules/@resolver-engine/imports-fs/build/index.js:24:35)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/doodloo/whatev/node_modules/@openzeppelin/cli/lib/models/compiler/solidity/SolidityProjectCompiler.js:24:22)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/doodloo/whatev/node_modules/@openzeppelin/cli/lib/models/compiler/Compiler.js:17:35)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

We subsequently tried installing the cli globally using yarn global add ... but then the same error occurs while running the global binary.

Everything seem to work fine when using NPM to install it globally though.

@spalladino
Copy link
Contributor

Thanks for the heads-up @hickscorp!! This had been fixed in #1059 for 2.4, but for some reason it was not picked into master. It will be included in the 2.5 release of @oz/cli.

@hickscorp
Copy link
Author

Thank you for the answer @spalladino!

I think maybe tagging 2.5 with an rc might be a tad too early? I'm closing this issue though.

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

No branches or pull requests

2 participants