Skip to content

TypeError: Cannot read property 'glob' of null #6234

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

Closed
erolyapici opened this issue May 9, 2017 · 5 comments
Closed

TypeError: Cannot read property 'glob' of null #6234

erolyapici opened this issue May 9, 2017 · 5 comments

Comments

@erolyapici
Copy link

I got error when I run ng serve;


@angular/cli: 1.0.2
node: 7.4.0
npm 4.0.5
os: darwin x64

I installed
npm install -g @angular/clithen commang this its ok.

ng --versionresult:```

_                      _                 ____ _     ___

/ \ _ __ __ _ _ | | __ _ _ __ / | | | |
/ △ \ | '
\ / _ | | | | |/ _ | '
| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
@angular/cli: 1.0.2
node: 7.4.0
os: darwin x64

Create new project my-app that's ok.
` ng new my-app
`

When I go my-app directory and run ng serve i got this error```

Cannot read property 'glob' of null
TypeError: Cannot read property 'glob' of null
    at ObjectSchemaTreeNode._set (projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:224:131)
    at new ObjectSchemaTreeNode (projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:209:14)
    at OneOfSchemaTreeNode._createChildProperty (projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)
    at OneOfSchemaTreeNode._typesPrototype.schema.oneOf.map (projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:161:25)
    at Array.map (native)
    at OneOfSchemaTreeNode (projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:160:48)
    at ArraySchemaTreeNode._createChildProperty (/projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)
    at ArraySchemaTreeNode._set (/projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:286:39)
    at new ArraySchemaTreeNode projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:267:14)
    at ObjectSchemaTreeNode._createChildProperty (/projects/tmp/myApp/node_modules/@ngtools/json-schema/src/schema-tree.js:148:26)

@balr404
Copy link

balr404 commented May 9, 2017

I have tried the following option to resolve
Steps to resolve the issue

  1. $ pwd
    it shows —> /Users/YourName /*** That is your Home path***/

Execute the below command to display the hidden files

  1. $ defaults write com.apple.Finder AppleShowAllFiles true
  2. $ killall Finder

After executing the above command you will see the hidden files.
if “.angular-cli.json” file exist under “/Users/yourname” (i.e Home Path) then remove “.angular-cli.json” file.

then navigate to your application path and try execute ‘ng’ command.

@filipesilva
Copy link
Contributor

Thanks for reporting this issue. However, this issue is a duplicate of an existing issue #4207. Please subscribe to that issue for future updates.

@kiranpalkathait
Copy link

kiranpalkathait commented Jun 9, 2017

Thank you so much @balr404

@kurmivivek295
Copy link

I got the same issue, I ran npm install @angular/cli command on visual studio code terminal, and it's working. I am using Windows OS. Thanks.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants