Giter VIP home page Giter VIP logo

angular2-cli's People

Contributors

madhusudhanad avatar madhusudhand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular2-cli's Issues

Add support for npm 3

Issues observed with npm 3
To list few: ng2 init is not installing all the dependent packages and build failing.
Also, issues observed in running the app because of npm's new hierarchy of node_modules.

ng2 create init serve fails

My development machine is an Ubuntu 16.04.1 LTS (xenial xerus)

I installed nodejs including npm on it as desribed here:
http://www.angulartypescript.com/angular-typescript-npm-linux/

which gave me nodejs v6.9.2 and npm v3.10.9

I then went on and installed angular2-cli as described here: https://www.npmjs.com/package/angular2-cli
npm install -g angular2-cli

and went on with the instructions of that page and ran

ng2 create angular2-demo
cd angular2-demo
ng2 init
ng2 serve

which sadly only results in a webpage displaying "Loading...." forever and these errors output in the console:
angular2-demo-serve-error.txt

summary: as far as I understand it it complains that it Cannot read property 'exclude' of undefined of the files src/main.ts & src/vendor.ts

did I do something wrong or is there something broken?

Error copying vendor and/or third party libraries.

OSX El Capitan (10.11.6)
Creating an app and trying to start a server:

$node -v 
v5.12.0

$ng2 -V
0.2.3

$ng2 create TestApp
App created.

$cd TestApp

$ng2 init
Installed npm packages. (49 sec)

$ng2 serve
Clean successful.
Error copying vendor and/or third party libraries.
Unhandled rejection undefined

same for ng2 serve --dev, ng2 serve --prod, ng2 build...

Looks like issue is in angular-build.js file
module.exports = {
vendorNpmFiles: [
// these will be copied to dist/vendor
'@angular',
'rxjs', <-- after fresh installation this package is named as rx in node_modules
'systemjs',
'zone.js',
'reflect-metadata'
],
otherFiles: [
// add any files that needs to be copied to dist or any given path
// valid values
// 'src/CNAME' -> this copies file to dist folder
// { src: 'src/CNAME', dest: 'dist'} -> this copies file to the given location
'src/CNAME'
]
};

npm install [email protected] --save did the job for me

How to remove from system

Can you please give me instructions about how to remove your code from my system. Your code works well but I've chosen to use angular-cli for now. Thanks
Mac OSX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.