finally if found solution, apparently i got the wrong npm package,
then there are three types of JavaScript module systems of npm packages
( CommonJS - AMD - System )
the right package that works with AngularCLI is AMD module system
C1Wijmo-Enterprise-Eval-AMD-5.20172.328
Wijmo 5 reply
GridWijmo5
How to install Wijimo Grid :
Take the last version of Wijmo from this url :
http://prerelease.componentone.com/wijmo5/npm-images
Required for AngularCLI: AMD version.
So you have two choices :
First 1 :
Add this dependency in package.json file :
section : "dependencies"
"wijmo": "http://prerelease.componentone.com/wijmo5/npm-images/C1Wijmo-Enterprise-Eval-AMD-5.20172.328.tgz",
and Redo: npm install
it's same to do:
npm --save install http://prerelease.componentone.com/wijmo5/npm-images/C1Wijmo-Enterprise-Eval-AMD-5.20172.328.tgz
Second 2:
because yarn is hanging this package name, we ll add it manually in our node_modules/
wget -P node_modules/wijmo/ http://prerelease.componentone.com/wijmo5/npm-images/C1Wijmo-Enterprise-Eval-AMD-5.20172.328.tgz
extract the download file.
and make dependencies to this folder
"wijmo": "file:node_modules/wijmo",
Styles Grid
- Fetch the style file into src/assets/css/ folder
mkdir src/assets/css/ && curl -O
http://cdn.wijmo.com/5.20172.334/styles/wijmo.min.css >
src/assets/css/wijmo.min.css
Add Wijmo.min.css file in the Angular-cli.json file
"styles": [
"styles.css",
"assets/css/wijmo.min.css"
],
Import the WjGridModule in your app.module.ts
you should to check if the import Module is good.
import { WjGridModule } from 'wijmo/package/wijmo.angular2.grid';
import { WjCoreModule } from 'wijmo/package/wijmo.angular2.core';
after Continue to develop ^^^