This repository was archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
iOS delegate implementation causes TypeError: Attempted to assign to readonly property. #70
Copy link
Copy link
Closed
Description
After running npm run start-ios-bundle I get the following:
CONSOLE LOG file:///app/bundle.js:86026:16: Handler onNavigatedTo navigatedTo
1 0x104f4c33c -[TNSRuntime executeModule:referredBy:]
2 0x10347d519 main
3 0x108d2c68d start
4 0x1
file:///app/bundle.js:22761:25: JS ERROR TypeError: Attempted to assign to readonly property.
Feb 8 22:54:53 Blakes-MacBook-Pro-2 com.apple.CoreSimulator.SimDevice.C4495AD9-F0EE-453D-B745-8CAFA277F87F.launchd_sim[78098] (UIKitApplication:com.stageme.app[0x6f95][7930]): Service exited due to Segmentation fault: 11
This error relates to this code which is from my project, not a plugin:
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_file_system__ = __webpack_require__(/*! file-system */ 45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_file_system___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_file_system__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_platform__ = __webpack_require__(/*! platform */ 10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_platform___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_platform__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__shared_utils_using_simulator_util__ = __webpack_require__(/*! ../shared/utils/using-simulator.util */ 716);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__shared_utils_os_version_util__ = __webpack_require__(/*! ../shared/utils/os-version.util */ 715);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_timer__ = __webpack_require__(/*! timer */ 176);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_timer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_timer__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SpotAssetManager; });
/* unused harmony export SpotAssetContainer */
/* unused harmony export SpotAssetDownloadTask */
/* unused harmony export AVAssetDownloadDelegateImpl */
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
I've tried adding "noImplicitUseStrict": true, to my tsconfig, but no success.
I am using the standard webpack.common.js exactly like nativescript-sdk-examples-ng and here is my tsconfig:
{
"compilerOptions": {
"noEmitOnError": true,
"noEmitHelpers": true,
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"noImplicitUseStrict": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
// "importHelpers": true,
"pretty": true,
// "outDir": "bin/dist",
/* enable these if you want to use the tns-platform-declarations */
"lib": [
"es2016"
],
"skipLibCheck": true
},
"exclude": [
"node_modules",
"platforms",
"**/*.aot.ts"
]
}
ludwiktrammer
Metadata
Metadata
Assignees
Labels
No labels