datocms / gatsby-source-datocms

Official GatsbyJS source plugin to pull content from DatoCMS
MIT License
140 stars 51 forks source link

error "fieldType.normalResolver is not a function" on date fields #100

Closed sfivash closed 4 years ago

sfivash commented 4 years ago

Getting this error in version 2.1.26 on all date fields from DatoCms.

It works if I roll back the version to 2.1.23

fieldType.normalResolver is not a function

  24 |     howToRedeem
  25 |     redeemImage {
  26 |       fluid(maxWidth: 790) {
  27 |         ...GatsbyDatoCmsSizes
  28 |       }
  29 |     }
  30 |     codeNote
  31 |     codes {
  32 |       code
  33 |       releaseDate
> 34 |       expirationDate
     |       ^
  35 |       reward
  36 |     }
  37 |     codesJson
  38 |     expiredCodes
  39 |   }
  40 | }
  41 |
stefanoverna commented 4 years ago

Hi @sfivash can you check if 2.1.27 solves the issue?

thekarel commented 4 years ago

FWIW it fixed the exact same issue for me 👌

sfivash commented 4 years ago

@stefanoverna 2.1.27 solved the issue. Thanks!