You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Dmitriy (JIRA)" <ji...@apache.org> on 2018/01/03 20:46:00 UTC
[jira] [Created] (CB-13728) Types are not loaded into angular
typescript project
Dmitriy created CB-13728:
----------------------------
Summary: Types are not loaded into angular typescript project
Key: CB-13728
URL: https://issues.apache.org/jira/browse/CB-13728
Project: Apache Cordova
Issue Type: Bug
Components: cordova-plugin-camera
Affects Versions: cordova-android-7.0.0
Environment: MacOS High Sierra
npm -v
5.6.0
node -v
v8.4.0
typescript 2.5.3
Reporter: Dmitriy
Priority: Critical
When installing cordova-plugin-camera package via npm, types are not properly loaded in angular2 application:
When trying to build or serve receiving such error:
ERROR in error TS2688: Cannot find type definition file for '.github'.
error TS2688: Cannot find type definition file for 'appium-tests'.
error TS2688: Cannot find type definition file for 'doc'.
error TS2688: Cannot find type definition file for 'jsdoc2md'.
error TS2688: Cannot find type definition file for 'src'.
error TS2688: Cannot find type definition file for 'tests'.
error TS2688: Cannot find type definition file for 'www'.
src/app/components/myprofile/photo-upload-modal/photo-upload-modal.component.ts(26,19): error TS2339: Property 'camera' does not exist on type 'Navigator'.
src/app/components/myprofile/photo-upload-modal/photo-upload-modal.component.ts(29,69): error TS2304: Cannot find name 'Camera'.
src/app/components/myprofile/photo-upload-modal/photo-upload-modal.component.ts(29,103): error TS2304: Cannot find name 'Camera'.
src/app/components/myprofile/photo-upload-modal/photo-upload-modal.component.ts(31,29): error TS2304: Cannot find name 'Camera'.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org