relidon relidon - 1 year ago 148
Node.js Question

How to fix the error of Maximum call stack size exceeded when using patter lab?

In pattern lab

Maximum call stack size exceeded
error and I don't know why. I'm not doing anything that I haven't done before.

I have this code

<div class="mini_cart_item">
<img class="mini_cart_image" src={{img}} alt="">
<div class="mini_cart_info">
<h4 class="mini_cart_title">{{title}}</h4>

That data comes from
. It works fine.

Then I have
and the code is

<div class="mini_cart">
{{> cart}}

comes from the molecule above, the data comes from
. Is is the some json code just with more objects.

{{> cart}}
throws the
Maximum call stack size exceeded
 error. If I remove that line of code and replace it with anything, like
the code just works.

What might be the problem?

To run pattern lab I am running this

/MyMAMP/www/2016/edition-node-gulp/node_modules/gulp/bin/gulp.js patternlab:serve

From google search I tried this

/MyMAMP/www/2016/edition-node-gulp/node_modules/gulp/bin/gulp.js patternlab:serve --stack_size=2048

but the result is the same thing.

Answer Source

Maintainer of Pattern Lab Node here.

{{> cart}} should be {{> molecules-cart}}

Give that a shot.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download