Skip to content

Third party lib works unless I use --prod #2393

@tomhackettishida

Description

@tomhackettishida
  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Windows 10
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli: 1.0.0-beta.11-webpack.2
    node: 4.4.7
  3. The log given by the failure. Normally this include a stack trace and some
    more information.
    Error: Uncaught (in promise): No value accessor for form control with name: 'startDate'
  4. Mention any other details that might be useful.
    I'm using a third party lib (ng2-datepicker) which works when I use ng-serve, and also works when i use ng build. But as soon as I build with --prod it stops working and I get this error. Pulling my hair out trying to solve the issue, any ideas?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions