Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tanayraj2603 opened this issue Sep 7, 2020 · 1 comment
Open

Comments

@tanayraj2603
Copy link

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?

@MatviiStelmakh
Copy link

MatviiStelmakh commented Jan 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants