You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying to implement the semver into my monorepo using nx and when running within a PR, it works fine and it calculates everything. Once the PR is merged, it's failing to calculate the new version.
> nx run shared-util-feature-flag:version:production
[shared-util-feature-flag] 🆕 Calculated new version "null".
[shared-util-feature-flag] ❌ TypeError: Cannot read properties of null (reading 'toString')
at /home/vsts/work/1/s/node_modules/@jscutlery/semver/src/executors/version/utils/template-string.js:9:81
at Array.reduce (<anonymous>)
at createTemplateString (/home/vsts/work/1/s/node_modules/@jscutlery/semver/src/executors/version/utils/template-string.js:7:33)
at formatCommitMessage (/home/vsts/work/1/s/node_modules/@jscutlery/semver/src/executors/version/utils/commit.js:26:55)
at /home/vsts/work/1/s/node_modules/@jscutlery/semver/src/executors/version/index.js:76:68
at /home/vsts/work/1/s/node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js:17:35
at OperatorSubscriber._this._next (/home/vsts/work/1/s/node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at OperatorSubscriber.Subscriber.next (/home/vsts/work/1/s/node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /home/vsts/work/1/s/node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js:17:192
at OperatorSubscriber._this._next (/home/vsts/work/1/s/node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
> nx run shared-util-feature-flag:build
Hi, I've been trying to implement the semver into my monorepo using nx and when running within a PR, it works fine and it calculates everything. Once the PR is merged, it's failing to calculate the new version.
The command sample is as follows:
My target config is:
Any help will be appreciated! Thanks :)
The text was updated successfully, but these errors were encountered: