trueChart-Menubar4Sense icon indicating copy to clipboard operation
trueChart-Menubar4Sense copied to clipboard

TypeError [ERR_INVALID_ARG_TYPE] when running NPM Build

Open BeardedDevCo opened this issue 2 years ago • 0 comments

As title states, the following is the log when trying to run the npm build function.


> [email protected] prebuild
> npm run clean


> [email protected] clean
> gulp clean

node:internal/validators:119
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:119:11)
    at Object.resolve (node:path:1098:7)
    at getPath (/home/sc/Projects/Barclays/QlikSenseExtensions/trueChart-Menubar4Sense/tcmenu/env.js:36:16)
    at new <anonymous> (/home/sc/Projects/Barclays/QlikSenseExtensions/trueChart-Menubar4Sense/tcmenu/env.js:16:21)
    at Object.<anonymous> (/home/sc/Projects/Barclays/QlikSenseExtensions/trueChart-Menubar4Sense/tcmenu/env.js:4:8)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'ERR_INVALID_ARG_TYPE'
}

BeardedDevCo avatar Dec 02 '21 09:12 BeardedDevCo