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

Cryptic error when templateUrl is empty #3762

Closed
ericmartinezr opened this issue Aug 20, 2015 · 1 comment
Closed

Cryptic error when templateUrl is empty #3762

ericmartinezr opened this issue Aug 20, 2015 · 1 comment

Comments

@ericmartinezr
Copy link
Contributor

When trying to set up a plnkr for a skeleton with alpha35 I found out this. I searched before but I didn't find anything.

When leaving templateUrl empty throws this error

EXCEPTION: TypeError: Cannot read property '0' of undefined
angular2.dev.js:22367 STACKTRACE:
angular2.dev.js:22367 TypeError: Cannot read property '0' of undefined
    at _resolveUrl (https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:15209:36)
    at execute.UrlResolver.resolve (https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:15254:18)
    at execute.Compiler._buildRenderTemplate (https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29632:48)
    at execute.Compiler._compile (https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29536:37)
    at https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29578:39
    at Array.forEach (native)
    at https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29563:64
    at Array.forEach (native)
    at execute.Compiler._compileNestedProtoViews (https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29562:25)
    at https://code.angularjs.org/2.0.0-alpha.35/angular2.dev.js:29500:27

Here's a plnkr.

I found a similar issue, but it's about setting a non-url.

A useful message could be : templateUrl must not be empty. That simple, I think.

@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 7, 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

Successfully merging a pull request may close this issue.

1 participant