<p><strong>import Ledger.Address qualified as Address          (Address, PaymentPubKeyHash(..))</strong></p>
<p>import PaymentPubKeyHash .</p>

CC BY-SA 4.0
2022-11-29T09:49:04.240Z
2022-11-29T09:49:04.240Z
Parita Vyas
<p>I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error:</p>
<pre><code> error:
    Not in scope: type constructor or class ‘PaymentPubKeyHash’
   |
57 |     { aSeller   :: !PaymentPubKeyHash
   |   

              ^^^^^^^^^^^^^^^^^
</code></pre>
<p>This is the code that originates the compilation error:</p>
<pre><code>data Auction = Auction
    { aSeller   :: !PaymentPubKeyHash
    , aDeadline :: !POSIXTime
    , aMinBid   :: !Integer
    , aCurrency :: !CurrencySymbol
    , aToken    :: !TokenName
    } deriving (P.Show, Generic, ToJSON, FromJSON, ToSchema)
</code></pre>
<p>I have followed the steps on the week1 videos, but I'm getting this error, any help is welcomed. Thank you.</p>

CC BY-SA 4.0
2022-01-17T02:12:40.317Z
What gitrev of plutus-apps are you using? Can you gist your entire code file? I'm guessing either a version mismatch or a typo.
Samuel Leathers
CC BY-SA 4.0
2022-01-17T02:22:15.280Z
@SamuelLeathers I just got it working. I ran `cabal update` in the week1 code folder and the code compiled. Thank you.
Lucas Araujo
CC BY-SA 4.0
2022-01-17T02:24:46.243Z
Also, I was running the plutus playground on a old version of `plutus` repository not `plutus-apps`
Lucas Araujo
<plutus-pioneer-program><plutus-playground>
Not in scope: type constructor or class ‘PaymentPubKeyHash’ - Week 1 Pioneers Exercise
# Not in scope: type constructor or class ‘PaymentPubKeyHash’ - Week 1 Pioneers Exercise

(Asked by: username_0 on 2022-01-17)

I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error:
 error:
    Not in scope: type constructor or class ‘PaymentPubKeyHash’
   |
57 |     { aSeller   :: !PaymentPubKeyHash
   |   

              ^^^^^^^^^^^^^^^^^

This is the code that originates the compilation error:
data Auction = Auction
    { aSeller   :: !PaymentPubKeyHash
    , aDeadline :: !POSIXTime
    , aMinBid   :: !Integer
    , aCurrency :: !CurrencySymbol
    , aToken    :: !TokenName
    } deriving (P.Show, Generic, ToJSON, FromJSON, ToSchema)

I have followed the steps on the week1 videos, but I'm getting this error, any help is welcomed. Thank you.

**Tags:** plutus-pioneer-program, plutus-playground
> **Comments:**
> **username_1**: What gitrev of plutus-apps are you using? Can you gist your entire code file? I'm guessing either a version mismatch or a typo.  
> **username_0**: @SamuelLeathers I just got it working. I ran `cabal update` in the week1 code folder and the code compiled. Thank you.  
> **username_0**: Also, I was running the plutus playground on a old version of `plutus` repository not `plutus-apps`  

---

## 1 answers

### Answer by username_2 on 2022-11-29. Score: 0

**import Ledger.Address qualified as Address (Address, PaymentPubKeyHash(..))**

import PaymentPubKeyHash .


---

