Giter Site home page Giter Site logo

minimal-reproduction's People

Contributors

arekgotfryd avatar

Watchers

 avatar

minimal-reproduction's Issues

error NG8002: Can't bind to 'formGroup' since it isn't a known property of 'form'.

Issuehunt badges

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

I'm getting following error
Error: projects/my-lib/src/lib/my-lib.component.html:1:7 - error NG8002: Can't bind to 'formGroup' since it isn't a known property of 'form'.
After running ng test command although I import ReactiveFormsModule in TestBed.configureTestingModule method.
Steps to reproduce:

  1. git clone https://github.com/arekgotfryd/minimal-reproduction
  2. cd minimal-reproduction
  3. npm i
  4. ng test

Please provide a link to a minimal reproduction of the bug

https://github.com/arekgotfryd/minimal-reproduction

Please provide the exception or error you saw

Error: projects/my-lib/src/lib/my-lib.component.html:1:7 - error NG8002: Can't bind to 'formGroup' since it isn't a known property of 'form'.

1 <form [formGroup]="linkingForm">
        ~~~~~~~~~~~~~~~~~~~~~~~~~

  projects/my-lib/src/lib/my-lib.component.ts:6:16
    6   templateUrl: './my-lib.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component MyLibComponent.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 11.2.18
Node: 14.18.2
OS: win32 x64

Angular: 11.2.14
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.18
@angular-devkit/build-angular   0.1102.18
@angular-devkit/core            11.2.18
@angular-devkit/schematics      11.2.18
@angular/cli                    11.2.18
@schematics/angular             11.2.18
@schematics/update              0.1102.18
ng-packagr                      11.2.4
rxjs                            6.6.7
typescript                      4.1.6
webpack                         4.19.1

Anything else?

Link to screenshot from terminal:
Screenshot


IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.