Plugin(s): "nativescript-webrtc-plugin": "^1.0.2", branch v2 on master I got even more errors
Replicate:
1) clone the webrtc repository
2) make npm install on the root
3) access to demo-ng
4) npm install
5) for a huge list of errors run build ios --release --sdk 10 --bundle --env.uglify --env.snapshot
6) for a smaller errors list run: build ios --release --sdk 10
in both cases for android and ios the compilation fails.
ERROR in ../src/src/android/TNSRTCConfiguration.ts(17,39): error TS2304: Cannot find name 'java'.
../src/src/android/TNSRTCMediaStreamConstraints.ts(15,145): error TS2304: Cannot find name 'java'.
../src/src/android/TNSRTCMediaStreamConstraints.ts(17,138): error TS2304: Cannot find name 'java'.
../src/src/android/TNSRTCMediaStreamConstraints.ts(19,138): error TS2304: Cannot find name 'java'.
../src/src/android/TNSRTCMediaStreamConstraints.ts(19,197): error TS2304: Cannot find name 'java'.
../src/src/android/TNSRTCPeerConnection.ts(159,25): error TS2304: Cannot find name 'java'.
../src/src/ios/TNSRTCConfiguration.ts(17,35): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.android.ts(45,31): error TS2503: Cannot find namespace 'java'.
../src/webrtc.android.ts(47,36): error TS2304: Cannot find name 'java'.
../src/webrtc.android.ts(66,21): error TS2304: Cannot find name 'java'.
../src/webrtc.android.ts(67,21): error TS2304: Cannot find name 'java'.
../src/webrtc.android.ts(73,21): error TS2304: Cannot find name 'java'.
../src/webrtc.android.ts(74,21): error TS2304: Cannot find name 'java'.
../src/webrtc.android.ts(222,29): error TS2503: Cannot find namespace 'native'.
../src/webrtc.android.ts(361,17): error TS2304: Cannot find name 'android'.
../src/webrtc.android.ts(362,17): error TS2304: Cannot find name 'android'.
../src/webrtc.android.ts(370,39): error TS2304: Cannot find name 'android'.
../src/webrtc.android.ts(371,39): error TS2304: Cannot find name 'android'.
../src/webrtc.ios.ts(98,34): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.ios.ts(135,13): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(136,17): error TS2304: Cannot find name 'AVMediaTypeVideo'.
../src/webrtc.ios.ts(150,13): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(151,17): error TS2304: Cannot find name 'AVMediaTypeAudio'.
../src/webrtc.ios.ts(176,24): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(177,13): error TS2304: Cannot find name 'AVMediaTypeVideo'.
../src/webrtc.ios.ts(180,18): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(188,24): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(189,13): error TS2304: Cannot find name 'AVMediaTypeAudio'.
../src/webrtc.ios.ts(192,18): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(207,58): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(225,21): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(257,21): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(264,52): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(289,21): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(335,34): error TS2304: Cannot find name 'NSString'.
../src/webrtc.ios.ts(335,84): error TS2304: Cannot find name 'NSUTF8StringEncoding'.
../src/webrtc.ios.ts(339,34): error TS2304: Cannot find name 'NSData'.
../src/webrtc.ios.ts(379,16): error TS2304: Cannot find name 'NSUUID'.
../src/webrtc.ios.ts(445,21): error TS2304: Cannot find name 'AVAudioSessionPortOverride'.
../src/webrtc.ios.ts(450,21): error TS2304: Cannot find name 'AVAudioSessionPortOverride'.
../src/webrtc.ios.ts(491,24): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(492,13): error TS2304: Cannot find name 'AVMediaTypeVideo'.
../src/webrtc.ios.ts(495,24): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(496,24): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(501,24): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(502,13): error TS2304: Cannot find name 'AVMediaTypeVideo'.
../src/webrtc.ios.ts(505,24): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(506,24): error TS2304: Cannot find name 'AVAuthorizationStatus'.
../src/webrtc.ios.ts(511,42): error TS2304: Cannot find name 'NSObject'.
../src/webrtc.ios.ts(543,24): error TS2304: Cannot find name 'NSString'.
../src/webrtc.ios.ts(543,75): error TS2304: Cannot find name 'NSUTF8StringEncoding'.
../src/webrtc.ios.ts(550,45): error TS2304: Cannot find name 'NSObject'.
../src/webrtc.ios.ts(555,23): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.ios.ts(569,13): error TS2304: Cannot find name 'dispatch_async'.
../src/webrtc.ios.ts(569,28): error TS2304: Cannot find name 'dispatch_get_current_queue'.
../src/webrtc.ios.ts(635,21): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.ios.ts(681,36): error TS2304: Cannot find name 'NSObject'.
../src/webrtc.ios.ts(803,56): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(854,21): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.ios.ts(1087,21): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(1090,19): error TS2304: Cannot find name 'AVCaptureDevicePosition'.
../src/webrtc.ios.ts(1091,19): error TS2304: Cannot find name 'AVCaptureDevicePosition'.
../src/webrtc.ios.ts(1101,101): error TS2304: Cannot find name 'NSError'.
../src/webrtc.ios.ts(1113,40): error TS2304: Cannot find name 'AVCaptureDeviceFormat'.
../src/webrtc.ios.ts(1117,28): error TS2304: Cannot find name 'fmax'.
../src/webrtc.ios.ts(1123,27): error TS2304: Cannot find name 'NSArray'.
../src/webrtc.ios.ts(1123,35): error TS2304: Cannot find name 'AVCaptureDeviceFormat'.
../src/webrtc.ios.ts(1124,17): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(1130,23): error TS2304: Cannot find name 'CMVideoDimensions'.
../src/webrtc.ios.ts(1130,43): error TS2304: Cannot find name 'CMVideoFormatDescriptionGetDimensions'.
../src/webrtc.ios.ts(1135,36): error TS2304: Cannot find name 'CMVideoFormatDescriptionGetDimensions'.
../src/webrtc.ios.ts(1154,59): error TS2304: Cannot find name 'AVCaptureSessionPreset640x480'.
../src/webrtc.ios.ts(1165,59): error TS2304: Cannot find name 'AVCaptureSessionPreset1280x720'.
../src/webrtc.ios.ts(1176,59): error TS2304: Cannot find name 'AVCaptureSessionPreset1920x1080'.
../src/webrtc.ios.ts(1187,59): error TS2304: Cannot find name 'AVCaptureSessionPreset3840x2160'.
../src/webrtc.ios.ts(1206,17): error TS2304: Cannot find name 'AVCaptureDevice'.
../src/webrtc.ios.ts(1207,8): error TS2304: Cannot find name 'AVCaptureDeviceFormat'.
../src/webrtc.ios.ts(1216,29): error TS2304: Cannot find name 'AVCaptureDeviceFormat'.
../src/webrtc.ios.ts(1221,28): error TS2304: Cannot find name 'CMVideoDimensions'.
../src/webrtc.ios.ts(1221,48): error TS2304: Cannot find name 'CMVideoFormatDescriptionGetDimensions'.
../src/webrtc.ios.ts(1225,17): error TS2304: Cannot find name 'abs'.
../src/webrtc.ios.ts(1226,17): error TS2304: Cannot find name 'abs'.
Executing webpack failed with exit code 2.
DEMO apps are not working not even trying fresh install on NS4.2 for iOS and Android as well.
Which platform(s) does your issue occur on?
Both
iOS 10 /Android api 26 versions
emulator or device. What type of device? Both, emulator and device, the iOS device is an iPhone 7 and a Moto G5
Please, provide the following version numbers that your issue occurs with:
CLI: 4.2.4
Cross-platform modules: "version": "4.2.2"
Runtime(s): "tns-android": { "version": "4.3.0-2018-08-29-02" }, "tns-ios": { "version": "4.3.0-2018-08-30-03" }
Plugin(s): "nativescript-webrtc-plugin": "^1.0.2", branch v2 on master I got even more errors
Replicate: 1) clone the webrtc repository 2) make npm install on the root 3) access to demo-ng 4) npm install 5) for a huge list of errors run build ios --release --sdk 10 --bundle --env.uglify --env.snapshot 6) for a smaller errors list run: build ios --release --sdk 10 in both cases for android and ios the compilation fails.