hpyhacking/peatio · error · Handlebars.Exception
The partial {} could not be compiled when running in runtime
Error message
The partial {} could not be compiled when running in runtime-only mode What it means
Error "The partial {} could not be compiled when running in runtime-only mode" thrown in hpyhacking/peatio.
Source
Thrown at app/assets/javascripts/swagger-ui/lib/handlebars-1.0.0.js:2266
var program = function(context, options) {
options = options || {};
return fn(context, options.data || data);
};
program.program = i;
program.depth = 0;
return program;
},
noop: function() { return ""; },
invokePartial: function(partial, name, context, helpers, partials, data) {
var options = { helpers: helpers, partials: partials, data: data };
if(partial === undefined) {
throw new Handlebars.Exception("The partial " + name + " could not be found");
} else if(partial instanceof Function) {
return partial(context, options);
} else if (!Handlebars.compile) {
throw new Handlebars.Exception("The partial " + name + " could not be compiled when running in runtime-only mode");
} else {
partials[name] = Handlebars.compile(partial, {data: data !== undefined});
return partials[name](context, options);
}
}
};
Handlebars.template = Handlebars.VM.template;
;
// lib/handlebars/browser-suffix.js
})(Handlebars);
;
View on GitHub (pinned to dab8641137)
Solutions
- Precompile the partial and register the compiled spec with Handlebars.registerPartial, or load the full Handlebars build that includes the compiler instead of the runtime-only build.
When it happens
Trigger: Thrown at app/assets/javascripts/swagger-ui/lib/handlebars-1.0.0.js:2266 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hpyhacking/peatio@dab8641137 (2026-08-23).
Data as JSON: /api/errors/b154d7ca32224a5f.
Report an issue: GitHub.