Open drquochoai opened 6 years ago
try installing @angular/cdk
@drquochoai peerDependencies for angular2-json-schema-form Make sure you have them included in your project
"peerDependencies": {
"@angular/cdk": ">=5.0.0",
"@angular/common": ">=4.0.0",
"@angular/core": ">=4.0.0",
"@angular/flex-layout": ">=2.0.0",
"@angular/forms": ">=4.0.0",
"@angular/material": ">=5.0.0",
"@angular/platform-browser": ">=4.0.0",
"rxjs": ">=5.0.0"
}
Could you share your package.json?
I'm using Ionic 3 to install angular2-json-schema-form-ionic
npm install angular2-json-schema-form
=>>angular2-json-schema-form-ionic.umd.js:832 Uncaught Error: Cannot find module "@angular/flex-layout" at Object.<anonymous> (angular2-json-schema-form-ionic.umd.js:832) at Object.<anonymous> (angular2-json-schema-form.es5.js:10288) at __webpack_require__ (bootstrap 7f9bb55bfe9e859bd52e:54) at IonicButtonComponent.ngOnInit (angular2-json-schema-form-ionic.umd.js:2) at Object.defineProperty.value (angular2-json-schema-form-ionic.umd.js:5) at __webpack_require__ (bootstrap 7f9bb55bfe9e859bd52e:54) at Object.233 (main.ts:5) at __webpack_require__ (bootstrap 7f9bb55bfe9e859bd52e:54) at Object.210 (main.js:135) at __webpack_require__ (bootstrap 7f9bb55bfe9e859bd52e:54)
And if i install flex-layout, i stuck at
Cannot find @angular/cdk/bidi
Please help