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

Cannot read property 'toString' of null #108

Closed
xmlking opened this issue Dec 28, 2019 · 5 comments · Fixed by #162
Closed

Cannot read property 'toString' of null #108

xmlking opened this issue Dec 28, 2019 · 5 comments · Fixed by #162
Assignees
Labels
bug Something isn't working

Comments

@xmlking
Copy link

xmlking commented Dec 28, 2019

🐞 Bug report

i am trying to add scullyio to an existing nrwl nx monorepo project (which is already angular 9 rc)

Cannot add @scullyio/init to my angular 9 project.

Description

🔬 Minimal Reproduction

ng add @scullyio/init
Installing packages for tooling via yarn.
Installed packages for tooling via yarn.
    ✅️ Added dependency
    ✅️ Import HttpClientModule into root module
Cannot read property 'toString' of null

💻Your Environment

Angular Version:



Angular CLI: 9.0.0-rc.7
Node: 13.5.0
OS: darwin x64

Angular: 9.0.0-rc.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.5
@angular-devkit/build-angular     0.900.0-rc.7
@angular-devkit/build-optimizer   0.900.0-rc.7
@angular-devkit/build-webpack     0.900.0-rc.5
@angular-devkit/core              9.0.0-rc.5
@angular-devkit/schematics        9.0.0-rc.5
@angular/cdk                      8.2.3
@ngtools/webpack                  9.0.0-rc.7
@schematics/angular               9.0.0-rc.7
@schematics/update                0.900.0-rc.7
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2

Scully Version:


latest

🔥 Exception or Error


ng add @scullyio/init
Installing packages for tooling via yarn.
Installed packages for tooling via yarn.
    ✅️ Added dependency
    ✅️ Import HttpClientModule into root module
Cannot read property 'toString' of null
@xmlking xmlking added the bug Something isn't working label Dec 28, 2019
@SanderElias
Copy link
Contributor

@xmlking can you provide a repo that demonstrates this issue?
That will make it easier for @jorgeucano to reproduce the issue, so we can fix the schematics

@xmlking
Copy link
Author

xmlking commented Jan 1, 2020

i create new project following nx guild https://nx.dev/angular/getting-started/getting-started
then i run the command ng add @scullyio/init ,this caused above error

@jusefb
Copy link

jusefb commented Jan 7, 2020

I have just experienced the same issue

@adyngom
Copy link

adyngom commented Jan 26, 2021

@jorgeucano @SanderElias I can see a fix has been merge but the error is still present:

angom$ ng add @scullyio/init
Your global Angular CLI version (11.1.1) is greater than your local version (11.0.7). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Cannot read property 'toString' of null

angom$ nx --version
11.1.5

angom$ node --version
v15.7.0

@bilalshaikh42
Copy link

Having the same problem, but getting "cannot read property 'search' of null"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants