Error: Callstack Overflow encountered in TypeScript application

Here is the code snippet that triggers a Callstack Size Exceeded Error:

    declare var createjs:any;

import {Animation} from '../animation';
import {Events} from 'ionic-angular';
import { Inject } from '@angular/core';

export class FischSuccess extends Animation {



    constructor(@Inject(Events) public events: Events) {
        super(events);
        this.initAnimation();
    }

    initAnimation() {

        var lib, images, ss;

        (function (lib, img, cjs, ss, events) {


            var cjs = createjs;


            var p; 
            lib.webFontTxtFilters = {};

// library properties:
            lib.properties = {
                width: 1000,
                height: 650,
                fps: 25,
                color: "#FFFFFF",
                opacity: 1.00,
                webfonts: {},
                manifest: [
                    {src:"images/fisch_atlas_success.png", id:"fisch_atlas_"}
                ]
            };



            lib.ssMetadata = [
                {name:"fisch_atlas_", frames: [[158,0,156,110],[0,0,156,110],[316,0,156,110],[0,112,156,110],[158,112,156,110]]}
            ];


            lib.webfontAvailable = function(family) {
                lib.properties.webfonts[family] = true;
                var txtFilters = lib.webFontTxtFilters && lib.webFontTxtFilters[family] || [];
                for(var f = 0; f < txtFilters.length; ++f) {
                    txtFilters[f].updateCache();
                }
            };
// symbols:



            (lib.Fisch1 = function() {
                this.spriteSheet = ss["fisch_atlas_"];
                this.gotoAndStop(0);
            }).prototype = p = new cjs.Sprite();



            (lib.Fisch2 = function() {
                this.spriteSheet = ss["fisch_atlas_"];
                this.gotoAndStop(1);
            }).prototype = p = new cjs.Sprite();

            // More symbol definitions...

// stage content:
            // Timeline animations...
            ...


        })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}, this.events);

        this.animationInit = this.setupAnimations(ss, images, lib, createjs);


    }

}

This piece of code was mainly auto-generated and adapted to work with Angular 5 along with some event handling.

The issue occurs when compiling with the --prod flag in Ionic or using the tsc command. Compiling without the --prod flag works as expected.

Answer №1

Attempt to install the specified zone version:

npm install --save <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ccb6a3a2a9e2a6bf8cfce2f4e2fdfa">[email protected]</a>

The issue is caused by using an outdated version of the zone.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the most effective method for configuring an npm module?

I need help with configuring an npm module that I'm developing. The module includes two functions called notify.sms.send() and notify.email.send(), as well as an abstract function notify.send() that can call either or both of these functions. To hand ...

Struggling with getting my Vue-CLI app deployed on Heroku

After diligently following all the steps outlined in this tutorial: https://codeburst.io/quick-n-clean-way-to-deploy-vue-webpack-apps-on-heroku-b522d3904bc8 I encountered an error message when checking my app at: The error indicated: Method Not Allowed ...

Adding elements to an array appears to cause the previously created object to react

I am encountering a situation where once I add an object to an array, it becomes reactive to any changes made. // actions.js export const addToCart = ({ commit }) => { commit('addToCart'); // successfully updates the state setTimeout ...

Exploring the world of Django and JSON POSTs in the realm of Google API mania

Project Overview I am currently developing an application aimed at assisting users in finding rides. My tech stack includes Django, Python 2.7, and integration with Google Maps and Directions APIs. Within a specific view, I present a map where users can ...

Only the first column of a row in Flexbox will have a line break when exceeding the

Currently, I am utilizing flex with a row direction for a set of items with fixed widths causing overflow and a horizontal scrollbar, which is the desired outcome. Nevertheless, my requirement is for the first column in these rows to be full-width, while ...

Urgent dependency alert: calling for a necessity (sequelize) in next.js is a vital element

I'm encountering a challenge with integrating sequelize into my Next.js 13 project to connect my API routes with the database. I keep receiving errors that say "Critical dependency: the request of a dependency is an expression." import * as pg from &a ...

Tips for transmitting information from the main window to a child in JavaScript

Being relatively new to JavaScript, I am attempting to transfer a value entered into an input text field on a parent window to its child window when a button on the parent window is clicked. The parent window features an input field for entering a number a ...

What advantages does NgRx offer that Signal does not provide?

Signals are a recent addition to the Angular framework. In comparison to Signals, what unique benefits does the NgRx component store or other state management options provide? Are there any functionalities offered by the NgRx component store that cannot ...

Attempting to combine numerous observables into a single entity within an Angular 2 project

I am grappling with the concept of Observables in RxJs. My task involves displaying all users for a specific site on a page. The User and SiteUser entities are located in separate API endpoints. Here are the relevant endpoints: userService.getSiteUsers(si ...

Learn the technique of swapping out a portion of a string with a value from an input field in real-time

My webpage has a form on the left side where users can input text, and on the right is some static text. I want the text on the right to update automatically as the user types in the input field on the left. In my HTML code, it looks something like this - ...

Next.js API Endpoint Call Resulting in Empty Object Returned by Fetch Function

Having an issue with making an API call in Next.js to delete an item from the database. I'm using the "body" field of the fetch to send a string to the API. The fetch call is within a Next.JS page, and the API endpoint is located in the API folder gen ...

Is there a way to navigate to the next or previous image in a lightbox by using ev.target.nextElementSibling or ev.target.prevElementSibling?

I am new to the world of web development Currently, I'm facing an issue with my lightbox feature. I want to navigate between images by using ev.target.nextElementSibling and ev.target.prevElementSibling when clicking on the next/previous arrow.png ic ...

Having trouble with Webpack dynamic import not returning files in ReactJS? Here's how to fix it

Struggling with importing and using images in Reactjs? I've imported all images from a folder but it's not returning an array with links. Take a look. function importAll(r) { return r.keys().map(r); } const images = importAll(requi ...

Utilizing Vue.js to apply conditional statements or filters on v-for generated outputs

Currently, I am working on organizing my results by category. I believe there is room for improvement in the way it's being done: <div><h2>Gloves</h2></div> <div v-for="stash in stashes" :key="stash.id"> <div v-for= ...

Divs are not being organized into rows correctly due to issues with Bootstrap styling

I have implemented Bootstrap in my Angular application. The stylesheet link is included in my Index.html file as follows: <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css"> In addition to that, I have listed Bootstrap a ...

Updating the ngModel within a directive using another directive

Struggling to grasp why modifications to an ngModel don't transfer between directives. Take a look at this plunker for a simplified example of the issue. Essentially, there's a directive I've defined that utilizes ngModel with an isolate sc ...

Running javascript within a python environment commonly leads to the occurrence of a KeyError

Struggling to implement a Python Selenium script? I need to verify if a specific element exists within a designated parent and return true if it does. Check out the code snippet below: for box in range(len(browser.find_elements(*selector))): res ...

Synchronize the completion of multiple promises in ExpressJs before sending a response

My POST API contains some logic that needs to wait for all promises to finish before sending the response. However, I'm facing an issue with making my server wait using await Promise.all(tasks); I've tried various approaches and even used librar ...

Is tsconfig.json Utilized by Gatsby When Using Typescript?

Many blog posts and the example on Gatsby JS's website demonstrate the use of a tsconfig.json file alongside the gatsby-plugin-typescript for TypeScript support in Gatsby. However, it seems like the tsconfig.json file is not actually utilized for conf ...

Regular Expression to Replace Characters Not Matching

I am struggling with a coding issue that involves manipulating a string. The original string I have is "Hello This is world This". Here is the code snippet I have tried: var patt = 'Hello This is world This' var res = patt.constructor; alert( ...