question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am getting below error:-

Cannot read property ‘config’ of null TypeError: Cannot read property ‘config’ of null

ng --version is _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ / | | | | / ? \ | ’ \ / _ | | | | |/ _ | '| | | | | | | / ___ | | | | (| | || | | (| | | | || | | | // __| ||_, |_,||_,|| _||| |___/ @angular/cli: 1.2.6 node: 7.8.0 os: win32 x64 @angular/common: 4.3.2 @angular/compiler: 4.3.2 @angular/core: 4.3.2 @angular/forms: 4.3.2 @angular/http: 4.3.2 @angular/platform-browser: 4.3.2 @angular/platform-browser-dynamic: 4.3.2 @angular/router: 3.0.0-rc.1 @angular/router-deprecated: 2.0.0-rc.2 @angular/cli: 1.2.6 @angular/compiler-cli: 4.3.3

I just checked node_modules@angular\cli\tasksbuild.js file where it’s calling CliConfig.fromProject() but there is no such method in @angular\cli\models\config\config.js… Not sure if it’s bug or what?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nelashjcommented, Aug 3, 2017

Not sure what is wrong with my setup. Could you please share your package.json and tsconfig.json.

Here is what I am getting:- C:\Official\UI\testAngular>C:\Official\Software\node-v7.8.0-win-x64\ng --version _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ / | | | | / ? \ | ’ \ / _ | | | | |/ _ | '| | | | | | | / ___ | | | | (| | || | | (| | | | || | | | // __| ||_, |_,||_,|| _||| |___/

@angular/cli: 1.2.6
node: 7.8.0
os: win32 x64
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/router-deprecated: 2.0.0-rc.2
@angular/cli: 1.2.6
@angular/compiler-cli: 4.3.3
C:\Official\UI\testAngular>C:\Official\Software\node-v7.8.0-win-x64\ng build
Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
    at Class.run (C:\Official\UI\testAngular\node_modules\@angular\cli\tasks\build.js:14:56)
    at Class.run (C:\Official\UI\testAngular\node_modules\@angular\cli\commands\build.js:162:26)
    at resolve (C:\Official\UI\testAngular\node_modules\@angular\cli\ember-cli\lib\models\command.js:273:20)
    at Class.validateAndRun (C:\Official\UI\testAngular\node_modules\@angular\cli\ember-cli\lib\models\command.js:251:12)
    at Promise.resolve.then.then (C:\Official\UI\testAngular\node_modules\@angular\cli\ember-cli\lib\cli\cli.js:157:24)
    at tryCatch (C:\Official\UI\testAngular\node_modules\rsvp\dist\rsvp.js:525:12)
    at invokeCallback (C:\Official\UI\testAngular\node_modules\rsvp\dist\rsvp.js:538:13)
    at publish (C:\Official\UI\testAngular\node_modules\rsvp\dist\rsvp.js:508:7)
    at flush (C:\Official\UI\testAngular\node_modules\rsvp\dist\rsvp.js:2415:5)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to find the reason for a failed Build without any error or ...
While building using Visual Studio 2010, Build fails without any error or warning. However building the .csproj using MsBuild is successful. Can't figure...
Read more >
Visual Studio Shows Build Failed But No Errors are Displayed
This is often an issue of framework mismatch, especially when you've added references to new projects within a solution. Check the project ...
Read more >
What does "Build Failing" mean in Github? - SitePoint
I've assumed that “Build failing” means the package in question on Github doesn't work but I read one comment elsewhere suggesting otherwise ...
Read more >
Build fail errors when running the build script - IBM
The build script creates a database schema or imports metadata into the ETL tool. Symptoms. The error BUILD FAILED can occur with a...
Read more >
10 tips for debugging build failures - Jimus' Blog
It sounds obvious but I've been helping people troubleshoot builds for many years, and often people panic when they see a build has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found