-
Notifications
You must be signed in to change notification settings - Fork 12k
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
a new project with 0.37 doesn't run with ng serve #616
Comments
I solved the problem. The generated angular-cli.json file is missing a few new properties. {
"routes": [],
"defaults": {
"sourceDir": "src/client"
}
} |
The page will start up but not output anything to dist/vendor. Still working on this. |
Finally got it working again. All the node_module includes must be specified in angular-cli-build.js vendorNpmFiles: ["es6-shim/es6-shim.js",
"systemjs/dist/system-polyfills.js",
"angular2/bundles/angular2-polyfills.js",
"systemjs/dist/system.src.js",
"rxjs/bundles/Rx.js",
"angular2/bundles/angular2.dev.js",
"angular2/bundles/http.dev.js",
"angular2/bundles/router.dev.js"]
}); |
Yes. We now never copy your vendor files automatically. You have to specify them. Also we don't use bundles locally anymore, but that depends on your systemJS configuration and might not be a problem. Here's our current vendor list:
|
the |
I'm also wondering why you won't include those for us? After running |
I had to nuke my old generated code and place it in a newly configured project. It moved from 0.0.3x to 1.0.0-beta within a few days. Lots of changes happened all at once. |
@metric152 I ran |
@sharpmachine You shouldn't build new projects with anything older than the beta. As for upgrading to the latest beta, try |
@hansl I tried to run "npm install -g angular-cli@latest" but then I run "ng -v" and still getting an older version 0.0.39. |
Try upgrade instead of install On Monday, June 13, 2016, Federico-Comesana notifications@github.com
|
@Federico-Comesana we recently added https://github.com/angular/angular-cli#updating-angular-cli, it should help you upgrade. |
@filipesilva I've followed your link and still have an old angular-cli version (now is 0.0.33). Do am I missing something?
I'm running "ng -v" in my home folder. My environment:
|
@Federico-Comesana that's really weird. Try forcing the version manually |
just need to update everytime i need to uninstall and install again i need to migrate my project to latest one its not good |
update instructions don't work for me either. currently latest is 22, and , even after following the 'update' instructions, i'm stuck at beta 15 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
angular-cli: 0.0.37
node: 4.4.3
os: darwin x64
create a new project with
ng new p
cd into the project and run
ng serve
project doesn't start and dumps a log to console
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Cannot read property 'sourceDir' of undefined
TypeError: Cannot read property 'sourceDir' of undefined
at new Angular2App (/Users/eleitch/tmp/p/node_modules/angular-cli/lib/broccoli/angular2-app.js:30:40)
at module.exports (/Users/eleitch/tmp/p/angular-cli-build.js:6:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:55:19)
at Class.module.exports.Task.extend.init (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:89:10)
at new Class (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/node_modules/core-object/core-object.js:18:12)
at Class.module.exports.Task.extend.run (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/lib/tasks/serve.js:15:19)
at /Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/lib/commands/serve.js:64:24
at lib$rsvp$$internal$$tryCatch (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)
at /Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:331:11
at lib$rsvp$asap$$flush (/Users/eleitch/tmp/p/node_modules/angular-cli/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
And paste the result here.
3. Repro steps. Tell us exactly what you did and how you came to the failure.
If you can give us steps from the moment you created an empty application,
even better! Please try to be as descriptive as you can; this will avoid
unnecessary back and forth. Was this an app that wasn't created using the
CLI? What change did you do on your code? etc.
4. The log given by the failure. Normally this include a stack trace and some
more information.
5. Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: