DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • Reactive Programming
  • 5 Key Concepts for MQTT Broker in Sparkplug Specification
  • How To Approach Java, Databases, and SQL [Video]
  • Building a Flask Web Application With Docker: A Step-by-Step Guide

Trending

  • Reactive Programming
  • 5 Key Concepts for MQTT Broker in Sparkplug Specification
  • How To Approach Java, Databases, and SQL [Video]
  • Building a Flask Web Application With Docker: A Step-by-Step Guide

GruntJS and Maximum Call Stack Size Exceeded Warning

Derik Whittaker user avatar by
Derik Whittaker
·
Aug. 21, 13 · Interview
Like (0)
Save
Tweet
Share
5.09K Views

Join the DZone community and get the full member experience.

Join For Free

I am trying to set up a GruntJS build pipeline for one my side projects and ran into a very interesting warning today, shown below.

image 

What was weird was that this warning or error only started when I added my task to compile my Typescript code.  If I called the default task, which did not compile the Typescript code, everything worked as expected.  Of course, because the Typescript task was failing, I assumed the error had something to do with its configuration.  However, as you can see, my Typescript setup is pretty simple:

image

Because my setup looked right I thought it would be a smart idea to run the task with the verbose output via the grunt typescript –v command.  The second I ran this I saw the issue …

image

The Running “typescript” task goes on and on until we hit our stack overflow.

I immediately changed focus from my Typescript configuration to my task configuration and saw the issue.

image

Looking at my task setup above I saw the issue.  It is a bad idea to name your Grunt task the same as one of the target tasks in your config … D'OH.

After changing the name of my Grunt tasks as follows, the world was a happy place.

image

The moral of the story is two-fold:

  1. Do NOT name your Grunt task the same as your configuration element.
  2. Use the –v option to see what is really going on when a Grunt task fails.

Until next time.

P.S. If you want to learn more about Knockout, watch my Pluralsight Course on KnockoutJS.

P.P.S. If you want to learn how to transition your XAML skills to HTML, you can watch my course on HTML for the XAML Developer

Task (computing)

Published at DZone with permission of Derik Whittaker, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Reactive Programming
  • 5 Key Concepts for MQTT Broker in Sparkplug Specification
  • How To Approach Java, Databases, and SQL [Video]
  • Building a Flask Web Application With Docker: A Step-by-Step Guide

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: