-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.7 release breaks {{#if @partial-block}} usage #1341
Comments
No, it is not supposed to break anything. Could you provide an example that causes this error?
Am 2. Mai 2017 04:27:45 MESZ schrieb Jithin Emmanuel <[email protected]>:
…```
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 ?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1341
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
|
@nknapp I narrowed it down to this usage which was working in 4.0.6 but breaking with 4.0.7. partial.handlebars
submitcontainer.handlebars
4.0.7 is not handling Also if I call submitcontainer partial like this it does not break |
Closes #1341 If the @partial-block is called as parameter of a helper (like in {{#if @partial-block}}...{{/if}}, the partialBlockWrapper is executed without "options"-parameter. It should still work in without an error in such a case.
Closes #1341 If the @partial-block is called as parameter of a helper (like in {{#if @partial-block}}...{{/if}}, the partialBlockWrapper is executed without "options"-parameter. It should still work in without an error in such a case.
The bug is now fixed and a new release 4.0.8 is published. I decided to publish immediately (instead of waiting for feedback) since this was only a small fix. Thanks for your example. It helped a lot (and is the basis for the regression-test) |
Works fine with 4.0.6 release, was there any breaking changes with 4.0.7 ?
The text was updated successfully, but these errors were encountered: