When providing the parameter --acsVersion=<version> to the installer, the property this.props.acsVersion has number type, and it fails with the Invalid argument expected string error.
All instructions which treat it as a string will fail, such as:
file generators/app/index.js, line this.templatePath(this.props.acsVersion + '/.env'), and following
file node_modules/compare-versions/lib/umd/index.js, line if (typeof version !== 'string') {
As a quick fix, I modify the scripts forcing a type conversion with the following commands:
sed --in-place -E 's/(writing\(\).*)$/\1\n this.props.acsVersion = String(this.props.acsVersion);/' generators/app/index.js
sed --in-place -E "s/(const validateAndParse.*)$/\1\n version = String(version);/" node_modules/compare-versions/lib/umd/index.js
When providing the parameter
--acsVersion=<version>
to the installer, the propertythis.props.acsVersion
has number type, and it fails with theInvalid argument expected string
error.All instructions which treat it as a string will fail, such as:
generators/app/index.js
, linethis.templatePath(this.props.acsVersion + '/.env'),
and followingnode_modules/compare-versions/lib/umd/index.js
, lineif (typeof version !== 'string') {
As a quick fix, I modify the scripts forcing a type conversion with the following commands: