Unexpected directive 'FormControlDirective' imported by the module 'AppModule'


#1

I am getting the following issue while running Ionic 3 App

Runtime Error
Unexpected directive 'FormControlDirective' imported by the module 'AppModule'. Please add a @NgModule annotation.

Error: Unexpected directive 'FormControlDirective' imported by the module 'AppModule'. Please add a @NgModule annotation.
    at syntaxError (http://localhost:8100/build/vendor.js:78416:34)
    at http://localhost:8100/build/vendor.js:91370:44
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (http://localhost:8100/build/vendor.js:91353:49)
    at JitCompiler._loadModules (http://localhost:8100/build/vendor.js:102506:66)
    at JitCompiler._compileModuleAndComponents (http://localhost:8100/build/vendor.js:102465:52)
    at JitCompiler.compileModuleAsync (http://localhost:8100/build/vendor.js:102427:23)
    at PlatformRef_._bootstrapModuleWithZone (http://localhost:8100/build/vendor.js:5170:25)
    at PlatformRef_.bootstrapModule (http://localhost:8100/build/vendor.js:5156:21)
    at Object.235 (http://localhost:8100/build/main.js:3037:109)

I checked the code there is no reference of FormControlDirective anywhere.

Ionic Framework: ^3.6.0
Ionic App Scripts: 2.1.3
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 6.10.3
OS Platform: Windows 7
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36


#2

Where you able to solve this? I have almost exactly the same issue, and now I can’t use my component anywhere.