Promise.d.ts breaking - How to fix?
webdev48 opened this issue · 2 comments
webdev48 commented
XXX:angular2-library-example xxx $ npm run build
> angular2-library-example@1.0.6 build /Users/xxxx/Documents/workspace/angular2-library-example
> rm -rf lib && tsc -p src
node_modules/angular2/src/facade/promise.d.ts(1,10): error TS2661: Cannot re-export name that is not defined in the module.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v4.4.7
npm ERR! npm v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! angular2-library-example@1.0.6 build: `rm -rf lib && tsc -p src`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular2-library-example@1.0.6 build script 'rm -rf lib && tsc -p src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-library-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rm -rf lib && tsc -p src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-library-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-library-example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxxxx/Documents/workspace/angular2-library-example/npm-debug.log
xaun commented
Locking the TypeScript version to 1.7.5 to fix issues with angular & typescript versions. angular/angular#6468
mariohmol commented
Thanks @xaun , that works for the main library.. about the examples know how to fix? when i run npm start
on webpack example, It shows a lot of errors, for instance: examples/webpack/node_modules/angular2/src/platform/dom/dom_adapter.d.ts (85,42): error TS2304: Cannot find name 'Map'.