Symptom
The following error message is displayed regarding BuildProfile during project builds:
Property 'BUILD_VERSION' does not exist on type 'typeof BuildProfile'
Solution
After obtaining the build parameters and generating the BuildProfile class file, import the file in the HSP as follows:
import BuildProfile from '${packageName}/BuildProfile'; For details, see Obtaining Build Parameters from Code.