Posted 14 September 2017, 12:10 pm EST
Running “ng build --prod” on my Angular project shows this warning from Wijmo
Warning: Can’t resolve all parameters for WjValueAccessor in C:/Log/wijmo-test/node_modules/wijmo/wijmo.angular2.directiveBase.d.ts: (?). This will become an error in Angular v5.x
This can be reproduced using the latest version of Wijmo 5 (5.20172.328) and Angular CLI 1.2.1. The steps are:
- Extract Wijmo 5.20172.328 to the C:\wijmo folder.
- ng new wijmo-test
- cd wijmo-test
- xcopy C:\wijmo\NpmImages\wijmo-amd-min wijmo\wijmo-amd-min*.*
- xcopy C:\wijmo\Dist\styles\wijmo.min.css src\assets*.*
- Update package.json dependencies to include “wijmo”: “./wijmo/wijmo-amd-min”,
- Update angular-cli.json styles to include “assets/wijmo.min.css”
- Add WjGridModule import to the top of app.module.ts.
import { WjGridModule } from “wijmo/wijmo.angular2.grid”; - Add WjGridModule to imports section of the NgModule in app.module.ts.
- Add flex grid to bottom of app.component.html
<wj-flex-grid></wj-flex-grid> - npm install
- ng build --prod
I have also attached a copy of this sample project with the node_modules folder.
2017/07/wijmo-test.zip
