There appears to be a breaking change between 2.2.1 and 2.2.2. Previously, in gjs files, we could reference JS globals directly as helpers. For example, we were using @something=(Boolean this.blah) to cast a value to a boolean.
Now, we get the error:
Error: Attempted to resolve a helper in a strict mode template, but that value was not in scope: Boolean
Adding const Boolean = window.Boolean to the file works around the problem.
This problem is not limited to helpers. Something like {{document.title}} previously worked, but now throws a 'not in scope' error.
There appears to be a breaking change between
2.2.1and2.2.2. Previously, in gjs files, we could reference JS globals directly as helpers. For example, we were using@something=(Boolean this.blah)to cast a value to a boolean.Now, we get the error:
Adding
const Boolean = window.Booleanto the file works around the problem.This problem is not limited to helpers. Something like
{{document.title}}previously worked, but now throws a 'not in scope' error.