I am having typescript error on ICP ninja deployment

I am having error building my Motoko app on ICP ninja due to typescript configuration error.

Stdout:> integralforce_frontend@0.0.0 prebuild> dfx generate> integralforce_frontend@0.0.0 build> npx tsc && vite builde[41m e[0me[41me[37m This is not the tsc command you are looking for e[0me[41m e[0mTo get access to the TypeScript compiler, e[34mtsce[0m, from the command line either:- Use e[1mnpm install typescripte[0m to first add TypeScript to your project e[1mbeforee[0m using npx- Use e[1myarne[0m to avoid accidentally running code from un-installed packagesStderr:

#abdulsalamamtech

Hi, it looks like a dependency you’re using is not installed in the environment. Please make sure you install it e.g. in the "prebuild" step in the "scripts" section of the package.json file.

1 Like

As an example, from the Flying Ninja package.json:

  "scripts": {
    "prebuild": "npm i --include=dev && dfx generate backend",
    "build": "vite build",
    "dev": "vite"
  },
1 Like

Thank you, It’s now working!

2 Likes

Thanks you for the suggestion.