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

error: "Cannot set property 'builder' of undefined" #42

Closed
joeeames opened this issue Oct 10, 2020 · 2 comments · Fixed by #43
Closed

error: "Cannot set property 'builder' of undefined" #42

joeeames opened this issue Oct 10, 2020 · 2 comments · Fixed by #43

Comments

@joeeames
Copy link

Describe the bug
When running either "ng add @briebug/jest-schematic" or "ng g @briebug/jest-schematic:add" the error "Cannot set property 'builder' of undefined" is given

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/joeeames/UnitTestingAngularLikeABoss/tree/jest-solution
  2. clone, make sure you're on the jest-solution branch.
  3. npm i
  4. execute either of the two commands above
  5. See error

Expected behavior
no error
schematic-error

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

Desktop (please complete the following information):

  • OS: [Mac & Windows]
  • Node version: [14.7.0]
  • NPM or Yarn version [npm 6.14.7]
  • App type [Angular CLI]
  • Angular version [10.1.5]

Additional context
This was discovered on a windows box, then verified on a separate Mac

@schuchard
Copy link
Collaborator

Thanks for reporting @joeeames, I'll investigate.

@schuchard
Copy link
Collaborator

I've updated the tests to check for your type of example, which was an angular.json project config without a test builder path. I tested against your repo and it ran successfully. Let me know if you still have an issue.

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.

2 participants