jquery - how do I resolve this types conflict? -
i'm executing grunt task "typescriptusingtsconfig" , i'm getting following error:
conflicting definitions 'jquery' found at: 'c:/code/platts.bentek.web.benport/src/platts.bentek.web.benport.website/ node_modules/ng2-select2/node_modules/@types/jquery/index.d.ts' ---and--- 'c:/code/platts.bentek.web.benport/src/platts.bentek.web.benport.website/ node_modules/@types/jquery/index.d.ts'. consider installing specific version of library resolve conflict.
what strategy resolving conflict? main app greenfield development can use latest version of jquery. however, drilling node_modules ng2-select2, looks it's wired use jquery v2.0.39. there way use both versions of jquery? or main app limited lowest version of jquery used child component?
update
i assuming jquery @types configuration existed @ app root level , nested implementation within select2 control b/c error message stated there conflicting definitions b/t these 2 locations. tried deleting jquery @types directory app root directory ts grunt task returns following error:
"warning: node_modules/@types/select2/index.d.ts(8,1): error ts2688: cannot find type definition file 'jquery'. use --force continue."
so reference exists in select2/index.d.ts points jquery @types directory. when jquery @types directory exists, ts grunt task errors out version mismatch. idea how configuration may have gotten point or how fix?
wiki
Comments
Post a Comment