Skip to content

TypeError [ERR_INVALID_ARG_TYPE] when running NPM Build #33

Description

@BeardedDevCo

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


> menubar@1.4.0 prebuild
> npm run clean


> menubar@1.4.0 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'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions