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

Unexpected directive value 'undefined' on the View of component 'DisplayComponent' #2104

Closed
RinatMullayanov opened this issue May 22, 2015 · 7 comments

Comments

@RinatMullayanov
Copy link

I watched step by step guide https://angular.io/docs/js/latest/guide/ and created my repo https://github.com/RinatMullayanov/step-by-step-guide-with-angular2
with 2.0.0-alpha.23 everything works, but when I wanted to update to 2.0.0-alpha.25, I got an error:

Unexpected directive value 'undefined' on the View of component 'DisplayComponent'
Error
    at new BaseException (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:7159:25)
    at execute.Compiler._compile (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:24579:21)
    at https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:24607:35
    at Function.execute.ListWrapper.forEach (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:7593:15)
    at execute.Compiler._compileNestedProtoViews (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:24602:23)
    at https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:24587:25
    at Zone.run (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:115:17)
    at Zone.execute.NgZone._createInnerZone.zone.fork.fork.$run [as run] (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:12418:38)
    at zoneBoundFn (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:88:19)
    at lib$es6$promise$$internal$$tryCatch (https://code.angularjs.org/2.0.0-alpha.25/angular2.dev.js:479:16)

2015-05-22 20 05 03

@Braincompiler
Copy link

I got the same with v2.0.0-alpha.22 (The version I got using tsd).

How can I workaround it? Can I choose a specific Version? Maybe .23 where it seems to be working?

@RinatMullayanov
Copy link
Author

I got the same with v2.0.0-alpha.22 (The version I got using tsd).

How can I workaround it? Can I choose a specific Version? Maybe .23 where it seems to be working?

Oh, and update tsd I forgot.
Perhaps this is the reason of my problem - different versions of the tsd and angular2.
Now there are only tsd v2.0.0-alpha.22, well I will wait for the update to tsd v2.0.0-alpha.25.

@JavascriptMick
Copy link

Last time I got this error was the name change from For to NgFor. Nobody is doing a good job of updating the tsd along with the builds so you need to self-maintain for now.

@PatrickJS
Copy link
Member

I have a PR open with latest definitions that I made while workingon Angular 2

DefinitelyTyped/DefinitelyTyped#4432

@RinatMullayanov
Copy link
Author

I have a PR open with latest definitions that I made while workingon Angular 2

DefinitelyTyped/DefinitelyTyped#4432

Thanks

@mhevery
Copy link
Contributor

mhevery commented May 31, 2015

No action for us closing.

@mhevery mhevery closed this as completed May 31, 2015
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants