oasisprotocol / sapphire-paratime

Oasis Sapphire - the confidential EVM-compatible ParaTime for the Oasis Network
https://oasisprotocol.org/sapphire
Apache License 2.0
37 stars 27 forks source link

Broken `@oasisprotocol/sapphire-hardhat` installation #264

Closed matevz closed 9 months ago

matevz commented 9 months ago
SUMMARY

Following https://docs.oasis.io/dapp/sapphire/quickstart#init-a-new-hardhat-project fails when invoking

pnpm add -D @oasisprotocol/sapphire-hardhat
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@oasisprotocol/sapphire-paratime@workspace:^" is in the dependencies but no package named "@oasisprotocol/sapphire-paratime" is present in the workspace

This error happened while installing the dependencies of @oasisprotocol/sapphire-hardhat@2.17.3

Packages found in the workspace: 
Progress: resolved 3, reused 1, downloaded 1, added 0

Similarly, yarn add -D @oasisprotocol/sapphire-hardhat requires from you to select a version, which seems awkward:

[1/4] Resolving packages...
Couldn't find any versions for "@oasisprotocol/sapphire-paratime" that matches "workspace:^"
? Please choose a version of "@oasisprotocol/sapphire-paratime" from this list: (Use arrow keys)
❯ 1.2.2 
  1.1.4 
  1.1.3 
  1.1.1 
  1.1.0 
  1.0.15 
  1.0.14 
  1.0.13 
  1.0.11 
  1.0.10 
  1.0.9 
  1.0.7 
  1.0.6 
  1.0.5 
  1.0.4 
  1.0.3 
  1.0.2 
  1.0.1 
  1.0.0
ISSUE TYPE
STEPS TO REPRODUCE

Follow https://docs.oasis.io/dapp/sapphire/quickstart#init-a-new-hardhat-project

ACTUAL RESULTS

Returns error, see above.

EXPECTED RESULTS

Should install @oasisprotocol/sapphire-hardhat without issues.

matevz commented 9 months ago

cc @ptrus

CedarMist commented 9 months ago

This should be resolved with sapphire-hardhat v2.19.4 and sapphire-paratime v1.3.0

ptrus commented 9 months ago

Worked for me. (re-tried it some hours ago)