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
I am currently trying to display the version number of my client-side Angular application on a special admin page. Here is what I am currently coding:
// Top of TypeScript file
import * as nbgv from "nerdbank-gitversioning";
// Inside class
public version: string;
// Inside class constructor
nbgv.getVersion()
.then(r => this.version = r.version)
.catch(e => console.error(e));
Unfortunately, when I try to compile my application, I am getting these errors:
ERROR in ./node_modules/nerdbank-gitversioning/asyncprocess.js
Module not found: Error: Can't resolve 'child_process' in '\node_modules\nerdbank-gitversioning'
ERROR in ./node_modules/nerdbank-gitversioning/core.js
Module not found: Error: Can't resolve 'path' in '\node_modules\nerdbank-gitversioning'
What do I need to do in order to retrieve the version number of my build at runtime?
The text was updated successfully, but these errors were encountered:
I am currently trying to display the version number of my client-side Angular application on a special admin page. Here is what I am currently coding:
This is similar to the instructions given here: https://github.com/dotnet/Nerdbank.GitVersioning/blob/master/doc/node.md
Unfortunately, when I try to compile my application, I am getting these errors:
What do I need to do in order to retrieve the version number of my build at runtime?
The text was updated successfully, but these errors were encountered: