Code Monkey home page Code Monkey logo

Comments (12)

wardbell avatar wardbell commented on May 18, 2024 23

Closed. Obsolete.

from quickstart.

reutopiaer avatar reutopiaer commented on May 18, 2024

es6-shim.js:1 Uncaught RangeError: Maximum call stack size exceeded

<!doctype html>
<html>
   <head>
        <title>I</title>
        <script src="quickstart/dist/es6-shim.js"></script>
        <script src="bower_components/webcomponents.js/webcomponents.js"></script>  
  </head>
  <body>
  </body>
</html>

from quickstart.

gattoo avatar gattoo commented on May 18, 2024

Same case for me while trying to build a todoApp.

TypeError: Cannot read property 'annotations' of undefined

TypeError: Cannot read property 'annotations' of undefined
    at ReflectionCapabilities.execute.$__export.annotations (http://localhost:8080/angular2/src/reflection/reflection_capabilities.js:83:40)
    at Reflector.execute.$__export.annotations (http://localhost:8080/angular2/src/reflection/reflector.js:81:50)
    at DirectiveMetadataReader.execute.$__export.read (http://localhost:8080/angular2/src/core/compiler/directive_metadata_reader.js:33:41)
    at http://localhost:8080/angular2/src/core/compiler/compiler.js:127:35
    at Array.map (native)
    at Function.execute.$__export.map (http://localhost:8080/angular2/src/facade/collection.js:178:26)
    at Compiler.execute.$__export.createSteps (http://localhost:8080/angular2/src/core/compiler/compiler.js:126:43)
    at Compiler.execute.$__export._compileTemplate (http://localhost:8080/angular2/src/core/compiler/compiler.js:164:53)
    at http://localhost:8080/angular2/src/core/compiler/compiler.js:154:29
    at Zone.run (http://localhost:8080/dist/es6-shim.js:29891:19)
application.js:109 Uncaught (in promise) TypeError: Cannot read property 'annotations' of undefined {stack: (...), message: "Cannot read property 'annotations' of undefined"}

from quickstart.

wannadream avatar wannadream commented on May 18, 2024

I ran into the same issue.


TypeError: Cannot read property 'annotations' of undefined
TypeError: Cannot read property 'annotations' of undefined at ReflectionCapabilities.execute.$__export.annotations 
(http://localhost:3456/quickstart/angular2/src/reflection/reflection_capabilities.js:81:40)
    at Reflector.execute.$__export.annotations (http://localhost:3456/quickstart/angular2/src/reflection/reflector.js:81:50)
    at DirectiveMetadataReader.execute.$__export.read (http://localhost:3456/quickstart/angular2/src/core/compiler/directive_metadata_reader.js:31:41)
    at http://localhost:3456/quickstart/angular2/src/core/compiler/compiler.js:127:35
    at Array.map (native)
    at Function.execute.$__export.map (http://localhost:3456/quickstart/angular2/src/facade/collection.js:172:26)
    at Compiler.execute.$__export.createSteps (http://localhost:3456/quickstart/angular2/src/core/compiler/compiler.js:126:43)
    at Compiler.execute.$__export._compileTemplate (http://localhost:3456/quickstart/angular2/src/core/compiler/compiler.js:164:53)
    at http://localhost:3456/quickstart/angular2/src/core/compiler/compiler.js:154:29
    at Zone.run (http://localhost:3456/quickstart/dist/es6-shim.js:29889:19)
application.js:255
Uncaught (in promise) TypeError: Cannot read property 'annotations' of undefined {stack: (...), message: "Cannot read property 'annotations' of undefined"}
message: "Cannot read property 'annotations' of undefined"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error

from quickstart.

dicoy-zz avatar dicoy-zz commented on May 18, 2024

same here: todoApp

from quickstart.

vicb avatar vicb commented on May 18, 2024

That's probably because an error in a View's directives, there is a PR pending on angular.
see angular/angular#1917

from quickstart.

artdias90 avatar artdias90 commented on May 18, 2024

Same problem

from quickstart.

pancanin avatar pancanin commented on May 18, 2024

Same here

from quickstart.

dwilt avatar dwilt commented on May 18, 2024

+1

from quickstart.

FredLoney avatar FredLoney commented on May 18, 2024

@wardbell this should be reopened. The error is an uncaught exception that occurs in several situations. For me, it occurs when a route is defined without a component declaration. The main issue is that the error message is useless and difficult to trace. In my case, it indirectly results from the resolve.ts code:

_ => resolver.resolveComponent(<any>node.value.component).then(factory => { node.value._resolvedComponentFactory = factory;

which cascades as an error in a wholly different call stack. The assignment above should be guarded by checking for a factory value and issuing the appropriate error. In addition, the route should be validated beforehand. Furthermore, there should be a separate task to ensure that the (forthcoming?) route documentation specifically states what is required.

This issue and its response are symptomatic of a pervasive cavalier disregard for defensive programming in the Angular development process. I appreciate how developers under pressure let issues like this slide, but technical leads and QA should know better. Code review, anyone? Unfortunately, defensive programming must be integral to the development process and is difficult to address after initial functional goals are achieved.

from quickstart.

filipesilva avatar filipesilva commented on May 18, 2024

@FredLoney the issue you are referring to should be reported in https://github.com/angular/angular rather than in the quickstart.

The quickstart repo aims to provide a barebones development environment and is not the place to report issues with Angular 2 itself.

from quickstart.

FredLoney avatar FredLoney commented on May 18, 2024

Oops, I thought all Angular modules shared a common issues list.

Filed as Angular Issue #10168

from quickstart.

Related Issues (20)

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.