Skip to content

OUT-2541 | TypeError: (lookupProperty(...) || (depth0 && lookupProperty(...)) || container.hooks.helperMissing).call is not a function - #113

Merged
arpandhakal merged 2 commits into
mainfrom
OUT-2541
Nov 3, 2025
Merged

OUT-2541 | TypeError: (lookupProperty(...) || (depth0 && lookupProperty(...)) || container.hooks.helperMissing).call is not a function#113
arpandhakal merged 2 commits into
mainfrom
OUT-2541

Conversation

@arpandhakal

Copy link
Copy Markdown
Collaborator

The main changes are

  • safeCompile.ts is a wrapper for handlebars designed to replace customFields ending with a . and register helperMissing with and empty string.
  • compiled templates with strict: false in custom handleBars compiler : safeCompile.
  • used safeCompile instead of directly using Handlebars?.compile in all places of the app.

Testing

… process templates with custom labels.

- safeCompile.ts is a wrapper for handlebars designed to replace customFields ending with a . and register helperMissing with and empty string.
- compiled templates with strict: false in custom handleBars compiler : safeCompile.
- used safeCompile instead of directly using Handlebars?.compile in all places of the app.
@arpandhakal arpandhakal self-assigned this Nov 3, 2025
@linear

linear Bot commented Nov 3, 2025

Copy link
Copy Markdown

@vercel

vercel Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
client-home Ready Ready Preview Comment Nov 3, 2025 10:32am

Comment thread src/utils/safeCompile.ts Outdated
@arpandhakal
arpandhakal merged commit 294bd7e into main Nov 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants