Thanks to visit codestin.com
Credit goes to github.com

Skip to content

4.0.7 release breaks {{#if @partial-block}} usage #1341

@jithine

Description

@jithine
TypeError: Cannot read property 'data' of undefined
    at Object.partialBlockWrapper (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:264:49)
    at Object.<anonymous> (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:10:33)
    at Object.eval (eval at createFunctionContext (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:10:32)
    at main (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:175:32)
    at ret (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:178:12)
    at ret (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:525:21)
    at Object.invokePartial (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:281:12)
    at Object.invokePartialWrapper [as invokePartial] (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:68:39)
    at Object.eval (eval at createFunctionContext (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:12:28)
    at main (/Users/me/app/node_modules/express-handlebars/node_modules/handlebars/dist/cjs/handlebars/runtime.js:175:32)

Works fine with 4.0.6 release, was there any breaking changes with 4.0.7 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions