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.

Cannot read property 'search' of null

See original GitHub issue

🐞 Bug report

Description

ng add @scullyio/init finished with the error Cannot read property 'search' of null and scully.<projectName>.config.ts file is not created in the project

🔬 Minimal Reproduction

  1. ng add @scullyio/init

💻Your Environment

Angular Version:


Angular CLI: 9.1.12
Node: 14.15.1
OS: win32 x64

Angular: 9.0.4
... common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.901.12
@angular-devkit/build-angular      0.901.9
@angular-devkit/build-optimizer    0.901.9
@angular-devkit/build-webpack      0.901.9
@angular-devkit/core               9.0.4
@angular-devkit/schematics         9.0.4
@angular/animations                9.1.12
@angular/cdk                       9.2.4
@angular/cli                       9.1.12
@angular/fire                      5.4.2
@angular/flex-layout               9.0.0-beta.31
@angular/http                      4.4.6
@angular/material                  9.2.4
@angular/material-moment-adapter   7.3.7
@angular/youtube-player            11.0.0
@ngtools/webpack                   9.1.9
@nguniversal/express-engine        7.0.2
@schematics/angular                9.0.4
@schematics/update                 0.901.12
rxjs                               6.5.4
typescript                         3.7.5
webpack                            4.42.0



Scully Version:


"@scullyio/init": "^1.0.1"


🔥 Exception or Error


Installing packages for tooling via npm.
Installed packages for tooling via npm.
Cannot read property 'search' of null

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
alessandro-tucci-visiontechcommented, Jul 13, 2021

My two cents: as per what I found while dealing with this analoguous issue (#1402) , it may be due to a couple of Scully’s implicit requirements:

  1. @angular/core shall be explicitly listed in the dependencies section of your package.json file, e.g.
  "dependencies": {
    "@angular/core": "~11.2.14",
    [..]
  }
  1. Your package.json file shall contain a scripts section. If you don’t have any script to list, declare it empty,
{
  [..]
  "dependencies": {
    [..]
  },
  "devDependencies": {
    [..]
  },
  "scripts": {}
}
0reactions
SanderEliascommented, May 29, 2021

Iḿ closing this, as I believe this problem is solved now. If I’m mistaken, let m know and I will reopen it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >
TypeError: Cannot read property 'value' of Null in JS
To solve the "Cannot read property 'value' of null" error, make sure that the JS script tag is placed at the bottom of...
Read more >
Uncaught TypeError: Cannot read property 'value' of null
I'm getting error in this code, I'm trying to do an event where in when the page is load, it will do the...
Read more >
How to deal with TypeError: cannot read properties of null
Firstly, while programming it is a good practice to properly declare and assign the variable to a value. The “TypeError: null is not...
Read more >
TypeError: Cannot read property 'getEditedPostAttribute' of null
TypeError : Cannot read property 'getEditedPostAttribute' of null ... I run into a problem today that prevents the new widgets page to display....
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