Please install typescript by running npm install typescript

Hi
I have a reactjs small app I tried to deploy to Cloudflare pages but the deploy failed with this error

Please install typescript by running npm install typescript

How I can do that in Cloudflare ?

Typescript should be added to your package.json file and Pages will automatically installed all packages in the package.json file.

1 Like

I tried adding in

"dependencies": {
"typescript": "^4.8.4"
}

Is that correct ?

Yeah that should work.

1 Like