google / google/closure-templates
variable soy is undeclared
Open
- Dominant language
- Java
- Stars
- 700
- Forks
- 199
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
```
simple.soy.js:22:54: ERROR - [JSC_UNDEFINED_VARIABLE] variable soy is undeclared
22| return '' + ((! opt_data.greetingWord) ? 'Hello ' + soy.$$escapeHtml(opt_data.name) + '!' : soy.$$escapeHtml(opt_data.greetingWord) + ' ' + soy.$$escapeHtml(opt_data.name) + '!');
```
Contributor guide
Research direction
Reproduce the reported error for simple.soy.js and inspect line 22, where the generated output references soy.$$escapeHtml. Trace the generation or compilation path that produces this reference, then confirm the corrected output no longer triggers the undeclared-variable diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100