jhades / angular2-library-example

An example repository for building your own Angular 2 library
84 stars 41 forks source link

Promise.d.ts breaking - How to fix? #3

Open webdev48 opened 8 years ago

webdev48 commented 8 years ago
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 8 years ago

Locking the TypeScript version to 1.7.5 to fix issues with angular & typescript versions. https://github.com/angular/angular/issues/6468

mariohmol commented 7 years ago

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'.