Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webdev48 opened this issue Oct 3, 2016 · 2 comments
Open

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

webdev48 opened this issue Oct 3, 2016 · 2 comments

Comments

@webdev48
Copy link

webdev48 commented Oct 3, 2016

XXX:angular2-library-example xxx $ npm run build

> [email protected] 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! [email protected] build: `rm -rf lib && tsc -p src`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] 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
Copy link

xaun commented Nov 4, 2016

Locking the TypeScript version to 1.7.5 to fix issues with angular & typescript versions. angular/angular#6468

@mariohmol
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants