angular-cli: Cannot find type definition file for 'chai'.
OS?
Ubuntu 16.04
Versions.
angular-cli: 1.0.0-beta.19-3 node: 6.7.0 os: linux x64
Repro steps.
- clone https://github.com/tarlepp/angular2-firebase-material-demo
- run
npm install
- create config.ts (as mentioned in readme.md)
- run
npm start
The log given by the failure.
wunder@Code-VirtualBox:~/projects/angular2-firebase-material-demo$ npm start
> angular2-firebase-material-demo@0.0.0 start /home/wunder/projects/angular2-firebase-material-demo
> ng serve --host 0.0.0.0
** NG Live Development Server is running on http://0.0.0.0:4200. ** 12923ms building modules 6ms add04101ms2195ms asse117ms emitting
Hash: af987254a406091fbfc8
Version: webpack 2.1.0-beta.25
Time: 20388ms
Asset Size Chunks Chunk Names
main.bundle.js 4.71 MB 0, 2 [emitted] main
styles.bundle.js 28.5 kB 1, 2 [emitted] styles
inline.js 5.53 kB 2 [emitted] inline
main.map 5.05 MB 0, 2 [emitted] main
styles.map 36.8 kB 1, 2 [emitted] styles
inline.map 5.59 kB 2 [emitted] inline
index.html 1.42 kB [emitted]
ERROR in [default] /home/wunder/projects/angular2-firebase-material-demo/node_modules/rxjs/observable/PairsObservable.d.ts:1:0
Cannot find type definition file for 'chai'.
ERROR in [default] /home/wunder/projects/angular2-firebase-material-demo/node_modules/rxjs/observable/dom/AjaxObservable.d.ts:1:0
Cannot find type definition file for 'chai'.
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 3.8 kB 0
webpack: bundle is now VALID.`
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 19 (4 by maintainers)
Commits related to this issue
- fix missing types for rxjs dependencies https://github.com/angular/angular-cli/issues/3071 — committed to Coppia/saas-web by deleted user 8 years ago
- heroku integration (#1) * Build working, server runs * move devDependencies, heroku doesn't pick them up * trying different approach * fix missing types for rxjs dependencies https://github... — committed to Coppia/saas-web by lightningeater 8 years ago
- rxjs-5.0.0-rc.4 has not needed @types/chai. https://github.com/angular/angular-cli/issues/3071#issuecomment-259311405 — committed to tmtk75/statusy by tmtk75 8 years ago
@tarlepp It seems rxjs requires
@types/chai
somehow. I also ran into the same error message and I could solve with this in my case. Hope this helps you as a workaround to suppress the error messages.I think chai is a test framework, so hope rxjs should not include the dependency in the released module.
The solution of @tmtk75 worked for me on RxJS RC5