-
Notifications
You must be signed in to change notification settings - Fork 201
npx zos
throws: Cannot read property 'UriResolver' of undefined
#1046
Comments
HI @obernardovieira, could you please specify exactly which version of |
Last time I've used zos locally (with npx) I was in 2.2.0. Usually, I use the global installation (although I only have one at a time). But It happened yesterday with zos and zos-lib in 2.4.0 After writing this above part of the comment I decided to try again. Yesterday I left the version 2.2.2 installed, and it now worked (It wasn't working yesterday) so I updated to 2.4.0 and I've got an error that I've seen yesterday as well |
I've just created a new project using zos 2.4 and I'm getting the same error with npx. However, I've copied the yarn.lock file from another existing working project and it works. I think there is something among the current dependencies that is breaking zos if installing from scratch at this exact moment. |
Right now, you can reproduce it using these steps: npm init -y
yarn add -D zos zos-lib
npx zos You will get the |
@obernardovieira, @wmitsuda thanks for reporting this 👍. It seems that this only occurs when installing |
Oh... damn yarn... but ok, I can use a working yarn.lock from another project for now. |
npx zos
throws: Cannot read property 'UriResolver' of undefined
I've just upgraded to zos 2.4.1 and I do confirm it is now working perfectly with yarn. |
Thanks for confirming this @wmitsuda! I'm closing this issue 👍 |
This error only happens when running zos locally, like
npx zos init
.This happens since version 2.2.0
nodejs: v10.15.3
truffle: v5.0.13
solc: v0.5.8
The text was updated successfully, but these errors were encountered: