Skip to content

Buidling code on master results in error when executing any task #522

@daniel-lohausen-consilica

Description

Describe the bug
Building code on master results in error when executing any task.

To reproduce

  1. Checkout master branch
  2. Run npm install && npm run fullBuild
  3. Run node ./package/Tasks/AWSCLI/AWSCLI.js (or any other task)

The following error occurs:

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/mnt/c/Users/UI725000/git/aws-toolkit-azure-devops/build/npmcache/package/Tasks/AWSCLI/AWSCLI.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

Same applies when publishing the module and trying in a 'real' environment.
Tested with multiple node/npm versions

Expected behavior

  • Task is running in real enviorment
  • Task will start, but then complain about missing parameters when running locally

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions