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 'architect' of undefined #28

Closed
praveeno opened this issue May 16, 2020 · 5 comments · Fixed by #41
Closed

Cannot read property 'architect' of undefined #28

praveeno opened this issue May 16, 2020 · 5 comments · Fixed by #41

Comments

@praveeno
Copy link

Describe the bug
Skipping installation: Package already installed
Cannot read property 'architect' of undefined

To Reproduce
initially trying to install, not working

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Ubuntu 18
  • Node version: v12.16.1
  • NPM version 6.13.4
  • App type - Angular CLI
  • Angular version - @angular/core: "9.1.3"
@assisgui
Copy link

I'm facing similar error, but the message is "Could not read package.json" after the installation with yarn:

image

@schuchard
Copy link
Collaborator

Are either of these projects public?

@assisgui
Copy link

No, sorry, my project is private :(

schuchard added a commit that referenced this issue Sep 2, 2020
Add support single application projects and workspaces with apps and libraries. 

## Jest runner

Replace the direct reliance on [`jest-preset-angular`](/~https://github.com/thymikee/jest-preset-angular) and package json scripts in favor of [`angular-builders/jest`](/~https://github.com/just-jeb/angular-builders/tree/master/packages/jest). This provides the ability to run tests with `ng test`

This should address #30 #28 #22 #11 
It better positions us to support #1 

## Jest types

Update each projects `tsconfig.spec.json` to configure the `jest` types while removing `jasmine`

This should address #24 #14

## Other
Non-user facing changes 

- refactor development scripts from `package.json` to TS file
- create 2 sandboxes (single app and workspace with app and lib)
- test both sandboxes during CI
- add MIT license
- add prettier
@schuchard
Copy link
Collaborator

Please see if ng add @briebug/jest-schematic@3.0.0-0 solves the issue

@schuchard
Copy link
Collaborator

This should be fixed, please re-open if the issue exist in the latest release of 3.0.0

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

Successfully merging a pull request may close this issue.

3 participants