You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI We are migrating our grunt assemble to gulp. But getting some issues
inline partials are not working when used inside if helper. It works if inline partial used without condition
For some pages node running out of memory occurs.
error message
For inline partials inside condition, getting following error
Stack:
Error: The partial collapseButton could not be found
at Object.invokePartial (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\handlebars\dist\cjs\handlebars\runtime.js:281:11)
at Object.handlebars.VM.invokePartial (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\engine-handlebars\index.js:196:26)
at Object.invokePartialWrapper [as invokePartial] (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\handlebars\dist\cjs\handlebars\ru
ntime.js:68:39)
at eval (eval at createFunctionContext (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\handlebars\dist\cjs\handlebars\compiler\java
script-compiler.js:254:23), <anonymous>:6:28)
at Object.prog [as fn] (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\handlebars\dist\cjs\handlebars\runtime.js:221:12)
at Object.<anonymous> (D:\XT-webpack\kairos_xt_presentation\node_modules\assemble\node_modules\handlebars\dist\cjs\handlebars\helpers\if.js:19:22)
at Object.<anonymous> (D:\XT-webpack\kairos_xt_presentation\node_modules\deep-bind\index.js:61:15)
at D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\index.js:347:23
at D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\node_modules\co\index.js:136:8
at thunkToPromise (D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\node_modules\co\index.js:135:10)
at toPromise (D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\node_modules\co\index.js:119:55)
at next (D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\node_modules\co\index.js:99:29)
at onFulfilled (D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\node_modules\co\index.js:69:7)
at process._tickCallback (internal/process/next_tick.js:109:7)
Here is the test partial
<divclass="mol_partial_view_toggle{{#iftypeString}}{{typeString}}{{/if}}"data-component="mol_partial_view_toggle"{{#ifid}}id="{{id}}"{{/if}}>
{{#*inline"collapseButton"}}
<div>Button</div>
{{/inline}}{{#ifbuttonBeforeText}}{{>collapseButton}}{{/if}}
Text
{{#unlessbuttonAfterText}}{{>collapseButton}}{{/unless}}
</div>
For node running out of memory
<--- Last few GCs --->
213792 ms: Mark-sweep 1254.7 (1418.5) -> 1254.7 (1418.5) MB, 1260.6 / 0.0 ms [allocation failure] [GC in old space requested].
215062 ms: Mark-sweep 1254.7 (1418.5) -> 1254.7 (1418.5) MB, 1269.7 / 0.0 ms [allocation failure] [GC in old space requested].
216317 ms: Mark-sweep 1254.7 (1418.5) -> 1254.7 (1404.5) MB, 1254.3 / 0.0 ms [last resort gc].
217604 ms: Mark-sweep 1254.7 (1404.5) -> 1254.7 (1404.5) MB, 1286.7 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 00000229C24CFB49 <JS Object>
1: /* anonymous */ [D:\XT-webpack\kairos_xt_presentation\node_modules\deep-bind\index.js:~45] [pc=000001B9A518F920] (this=0000004ADAD54B01 <an Object with m
ap 0000022328D4DAA9>)
2: arguments adaptor frame: 2->0
3: /* anonymous */ [D:\XT-webpack\kairos_xt_presentation\node_modules\async-helpers\index.js:347] [pc=000001B9A5151717] (this=0000034A2338AB69 <JS Global Ob
ject>,cb=0000003...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
// assemblefile.jsgulp.task('assemble-pages',function(){// Set main assemble optionsassemble.option('layout','default.hbs');assemble.helpers('./source/helpers/*.js');assemble.partials(['source/templates/components/{,*/}*.hbs','source/templates/includes/{,*/}*.hbs']);assemble.layouts('source/templates/layouts/*.hbs');assemble.pages('source/templates/components/mol_partial_view_toggle/mol_partial_view_toggle__sample.hbs');assemble.data(['source/data/*.json']);// push "pages" collection into streamreturnassemble.toStream('pages')// render pages with default engine (handlebars).pipe(assemble.renderFile()).pipe(flatten()).pipe(extname())// specify your output.pipe(assemble.dest('dist'));});
edited by @jonschlinkert to wrap code in backticks and try to make code readable
The text was updated successfully, but these errors were encountered:
@monty2610 I'll take a look at the partial issue when I get a chance.
Does the "out of memory" issue only happen when the partial is used inside a conditional?
version
0.24.3
HI We are migrating our grunt assemble to gulp. But getting some issues
error message
For inline partials inside condition, getting following error
Here is the test partial
For node running out of memory
<--- Last few GCs --->
edited by @jonschlinkert to wrap code in backticks and try to make code readable
The text was updated successfully, but these errors were encountered: