ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Error after ionic serve:Error File '... .tmp/typings/index.d.ts' not found.

Open workfluo opened this issue 9 years ago • 1 comments

Hello, I have an Error after the cli command ionic build. Error File '... .tmp/typings/index.d.ts' not found. Indeed there isn't any typings directory in tmp. The is a typings directory but of course at the root. It's like something (config?) prevents the copy of this directory in .temp.

I can serve the app and I've already done a build for android and ios with successes before. But since I add the libray Mapbox and its typings: $ npm install -g typings $ typings install --save --global dt~mapbox-gl The build doesn't work anymore.

System information: Cordova CLI: 6.4.0 Gulp version: CLI version 3.9.1 Gulp local:
Ionic Framework Version: 2.0.0-rc.3 Ionic CLI Version: 2.1.4 Ionic App Lib Version: 2.1.2 Ionic App Scripts Version: 0.0.45 ios-deploy version: 1.9.0 ios-sim version: 5.0.8

And in package.json for the app: "devDependencies": { "typescript": "2.0.6"

Please help me.

workfluo avatar Dec 11 '16 19:12 workfluo

Solved. npm install --save @types/mapbox-gl instead of typings install --save --global dt~mapbox-gl and not anymore tmp/typings/index.d.ts and typings directory

workfluo avatar Dec 12 '16 18:12 workfluo