ionic-conference-app: Unable to build the project
Short description of the problem:
Unable to build the project.
What behavior are you expecting?
Install all the node modules and run ionic serve with success.
Steps to reproduce: 1 - Download Zip file from Github.
2 - Extract Zip to a dir
3 - Run npm install in dir extract location
4 - Run ionic serve
[11:05:37] Finished 'sass' after 1.22 s
Caught exception:
Error: ENOENT: no such file or directory, lstat 'c:\Users\hsantos\Desktop\ionic-conference-app-master\typings\index.d.ts'
at Error (native)
at Object.fs.lstatSync (fs.js:887:18)
at Object.realpathSync (fs.js:1518:21)
at c:\Users\hsantos\Desktop\ionic-conference-app-master\node_modules\tsify\index.js:58:38
at Array.map (native)
at DestroyableTransform.flush [as _flush] (c:\Users\hsantos\Desktop\ionic-conference-app-master\node_modules\tsify\index.js:58:6)
at DestroyableTransform.<anonymous> (c:\Users\hsantos\Desktop\ionic-conference-app-master\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:115:49)
at DestroyableTransform.g (events.js:273:16)
at emitNone (events.js:80:13)
at DestroyableTransform.emit (events.js:179:7)
5 - Run another time npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
Ionic Info Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0-beta.37 Ionic App Lib Version: 2.0.0-beta.20 OS: Node Version: v5.11.1
Windows 10
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 15 (3 by maintainers)
A simple workaround (copy/move main.d.ts file):
‘cp typings/main.d.ts typings/index.d.ts’
more: (probably related with new ionic version 2.X) vi node_modules/ionic-gulp-browserify-typescript/index.js
var defaultOptions = { watch: false, src: [‘./app/app.ts’, ‘./typings/index.d.ts’], <--------
@mmazloum I forgot to mention, but I also tried to fix it running the:
typings installI faced the same errors your are reporting.
Thank you @karelbecerra for the workaround. 😉
Thank you @karelbecerra , your workaround works.
bishoymelek you can move forward with the posted workaround (copy the file main.d.ts with the name index.d.ts) and it will work!