I had created a webapp using Angular4 , been using SystemJs for loading 
modules and components, But now i have to move to webpack for packaging.

So I used the angular-starter as a starting point ( 
https://github.com/gdi2290/angular-starter ), able to get angular UI to the 
browser, I get problems only if I am using reactiveforms directive like 
"formControlName" or "ngModel" in the component.

Angular components works perfectly fine when used in SystemJS configuration.

NOTE: I am using tomcat8 as my server

Stack trace i get in browser console: 

Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
    at _isAndroid (forms.es5.js:631)
    at new DefaultValueAccessor (forms.es5.js:667)
    at createClass (core.es5.js:10916)
    at createDirectiveInstance (core.es5.js:10751)
    at createViewNodes (core.es5.js:12192)
    at callViewAction (core.es5.js:12622)
    at execComponentViewsAction (core.es5.js:12531)
    at createViewNodes (core.es5.js:12220)
    at createRootView (core.es5.js:12082)
    at callWithDebugContext (core.es5.js:13467)
    at Object.debugCreateRootView [as createRootView] (core.es5.js:12771)
    at ComponentFactory_.create (core.es5.js:9861)
    at ComponentFactoryBoundToModule.create (core.es5.js:3333)
    at ViewContainerRef_.createComponent (core.es5.js:10059)
    at RouterOutlet.activateWith (router.es5.js:5618)
    at ActivateRoutes.activateRoutes (router.es5.js:4749)
    at router.es5.js:4700
    at Array.forEach (<anonymous>)
    at ActivateRoutes.activateChildRoutes (router.es5.js:4700)
    at ActivateRoutes.activateRoutes (router.es5.js:4721)
    at router.es5.js:4700
    at Array.forEach (<anonymous>)
    at ActivateRoutes.activateChildRoutes (router.es5.js:4700)
    at ActivateRoutes.activateRoutes (router.es5.js:4717)
    at router.es5.js:4700
    at Array.forEach (<anonymous>)
    at ActivateRoutes.activateChildRoutes (router.es5.js:4700)
    at ActivateRoutes.activateRoutes (router.es5.js:4721)
    at router.es5.js:4700
    at Array.forEach (<anonymous>)
    at ActivateRoutes.activateChildRoutes (router.es5.js:4700)
    at ActivateRoutes.activate (router.es5.js:4593)
    at router.es5.js:4170


please suggest some solution

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to