A compound of formula (I) wherein R1 to R5, A, B, Z, Z1 and Z2 are as defined in the claims, and pharmaceutically acceptable salts thereof are disclosed. The compounds of formula (I) possess utility as FGFR inhibitors and are useful in the treatment of a condition, where FGFR kinase inhibition is desired, such as cancer.本發明揭示一種式(I)化合物其中R1至R5、A、B、Z、Z1及Z2如在申請專利範圍中所定義,及其醫藥學上可接受之鹽。式(I)化合物具有作為FGFR抑制劑之效用,且適用於其中需要FGFR激酶抑制之病狀之治療,諸如癌症之治療。