Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
igx dialog
posted

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 install
npm 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.node
Testing binary
Binary is fine
npm 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.184s
found 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.044Z
Hash: 080d1d513063a964c27a
Time: 10857ms
chunk {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]

ERROR in node_modules/igniteui-angular/lib/directives/dragdrop/dragdrop.directive.d.ts(396,24): error TS2315: Type 'CustomEvent' is not generic.


webpack: Failed to compile.
Terminate batch job (Y/N)? y

Attached export.. can you tell me what is the problem .. thanks.ggjlrvqvmjv.angular.zip

Parents
No Data
Reply
  • 280
    Verified Answer
    Offline posted

    Hi,

    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.

Children
No Data