I am trying to have running dialog control and export dialog demo for that purpose :
but after npm install and npm start the pj failed to compiled with the following error
ERROR in node_modules/igniteui-angular/lib/directives/dragdrop/dragdrop.directive.d.ts(396,24): error TS2315: Type 'CustomEvent' is not generic.
here the whole output :
C:\_webAngular_poc\ng_ig_start>npm installnpm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
> node-sass@4.9.2 install C:\_webAngular_poc\ng_ig_start\node_modules\node-sass> node scripts/install.js
Cached binary found at C:\Users\gkheysin\AppData\Roaming\npm-cache\node-sass\4.9.2\win32-x64-59_binding.node
> uglifyjs-webpack-plugin@0.4.6 postinstall C:\_webAngular_poc\ng_ig_start\node_modules\webpack\node_modules\uglifyjs-webpack-plugin> node lib/post_install.js
> node-sass@4.9.2 postinstall C:\_webAngular_poc\ng_ig_start\node_modules\node-sass> node scripts/build.js
Binary found at C:\_webAngular_poc\ng_ig_start\node_modules\node-sass\vendor\win32-x64-59\binding.nodeTesting binaryBinary is finenpm notice created a lockfile as package-lock.json. You should commit this file.npm WARN @angular/compiler-cli@5.2.11 requires a peer of @angular/compiler@5.2.11 but none is installed. You must install peer dependencies yourself.npm WARN codelyzer@3.0.1 requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.npm WARN codelyzer@3.0.1 requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1406 packages from 1204 contributors and audited 8044 packages in 182.184sfound 15 vulnerabilities (9 low, 6 high) run `npm audit fix` to fix them, or `npm audit` for details
C:\_webAngular_poc\ng_ig_start>npm start
> angular-template@0.0.0 start C:\_webAngular_poc\ng_ig_start> ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **Date: 2018-08-07T20:32:05.044ZHash: 080d1d513063a964c27aTime: 10857mschunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]chunk {main} main.bundle.js (main) 2.93 kB [initial] [rendered]chunk {polyfills} polyfills.bundle.js (polyfills) 636 bytes [initial] [rendered]chunk {styles} styles.bundle.js (styles) 514 kB [initial] [rendered]chunk {vendor} vendor.bundle.js (vendor) 853 kB [initial] [rendered]
webpack: Failed to compile.Terminate batch job (Y/N)? y
Attached export.. can you tell me what is the problem .. thanks.ggjlrvqvmjv.angular.zip
Yes.. it started to work.. thanks.
Hi,
Did you have the time to look at my suggestion ?
Did it resolve the issue for you, please let me know if you have further questions.
Thank you for contacting us!
I have investigated your issue and I came to the conclusion that the error occurs due to lower version of TypeScript.In your project you are using version "2.4.2". The "CustomEvent" is generic type first in 2.7 version.To resolve the issue you have to update TypeScript in your package.json file to version 2.7 or higher and after that run "npm install".
Please, let me know if I may be of further assistance.