globby icon indicating copy to clipboard operation
globby copied to clipboard

ERROR in The `cwd` option must be a path to a directory stuck at here

Open tanayraj2603 opened this issue 4 years ago • 1 comments

i am new in angular and i am stuck at this error. ERROR in The cwd option must be a path to a directory

can someone help me?

tanayraj2603 avatar Sep 07 '20 10:09 tanayraj2603

this error can happen when you pass wrong path for glob parameter for assets in angular.json ex.

{
  "glob": "**",
  "input": "src/assets/pwa",
  "output": "'assets'" 
}

this should be changed to:

{
  "glob": "**/*",
  "input": "src/assets/pwa",
  "output": "'assets'" 
}

I met this case updating to Angular v11, previous glob variant was working fine before updating

MatviiStelmakh avatar Jan 27 '21 09:01 MatviiStelmakh