I'm submitting a ...
[x] bug report
[ ] feature request
[ ] support request
Current behavior
_Completely new to ng2-formly and this is my first time submitting an issue so please go easy on me if I've made any mistakes._
After cloning the angular quickstart project, I've followed the instructions to install ng2-formly from the official website. Then I run npm start and I get these errors:
node_modules/ng2-formly/lib/src/core/components/formly.field.config.d.ts(15,43): error TS7006: Parameter 'model' implicitly has an 'any' type.
``node_modules/ng2-formly/lib/src/core/components/formly.field.config.d.ts(15,50): error TS7006: Parameter 'formState' implicitly has an 'any' type.
Expected behavior
Should display formly form like the one that's provided in the ng2-formly website
Minimal reproduction of the problem with instructions
npm install ng2-formly --saveimport {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {BrowserModule} from '@angular/platform-browser';
import {FormlyModule, FormlyBootstrapModule} from 'ng2-formly';
import {AppComponent} from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
FormlyModule.forRoot(),
FormlyBootstrapModule,
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
}
Please tell us about your environment:
OS X, Node v6.9.2, NPM 4.0.3
changetsconfig.json file
"noImplicitAny": false,
and add
'ng2-formly': 'npm:ng2-formly/bundles/ng2-formly.umd.js',
to systemjs.config.js
Most helpful comment
change
tsconfig.jsonfileand add
to
systemjs.config.js