jlooper / angular-starter

:zap: Build apps for the web, mobile, and desktop with one code base
https://github.com/jlooper/angular-starter
MIT License
106 stars 23 forks source link

Issues starting up the ios app #6

Closed cinjoff closed 7 years ago

cinjoff commented 7 years ago

To reproduce run npm run start.ios on a clean repo with the ios platform added

  1. Typescript problems when building:

    [0] [23:17:17] Starting 'build.js.tns'...
    [1] Successfully prepared plugin nativescript-angular for ios.
    [1] Successfully prepared plugin nativescript-intl for ios.
    [1] Successfully prepared plugin nativescript-theme-core for ios.
    [1] Successfully prepared plugin tns-core-modules for ios.
    [1] Successfully prepared plugin tns-core-modules-widgets for ios.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/directives/action-bar.d.ts(2,22): error TS2307: Cannot find module 'ui/page'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/directives/list-view-comp.d.ts(2,26): error TS2307: Cannot find module 'ui/list-view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/directives/platform-filters.d.ts(1,24): error TS2307: Cannot find module 'platform'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/directives/tab-view.d.ts(2,25): error TS2307: Cannot find module 'ui/tab-view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/element-registry.d.ts(1,22): error TS2307: Cannot find module 'ui/core/view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/file-system/ns-file-system.d.ts(1,24): error TS2307: Cannot find module 'file-system'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/platform-providers.d.ts(1,23): error TS2307: Cannot find module 'ui/frame'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/platform-providers.d.ts(2,22): error TS2307: Cannot find module 'ui/page'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/platform-providers.d.ts(4,24): error TS2307: Cannot find module 'platform'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/renderer.d.ts(3,22): error TS2307: Cannot find module 'ui/core/view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/renderer.d.ts(4,22): error TS2307: Cannot find module 'ui/page'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/renderer.d.ts(7,24): error TS2307: Cannot find module 'platform'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/router.d.ts(3,23): error TS2307: Cannot find module 'ui/frame'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/router/ns-location-strategy.d.ts(2,45): error TS2307: Cannot find module 'ui/frame'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/router/page-router-outlet.d.ts(5,24): error TS2307: Cannot find module 'platform'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/router/page-router-outlet.d.ts(6,23): error TS2307: Cannot find module 'ui/frame'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/router/router-extensions.d.ts(3,23): error TS2307: Cannot find module 'ui/frame'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/checked-value-accessor.d.ts(3,24): error TS2307: Cannot find module 'ui/switch'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/date-value-accessor.d.ts(3,28): error TS2307: Cannot find module 'ui/date-picker'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/number-value-accessor.d.ts(3,24): error TS2307: Cannot find module 'ui/slider'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/selectedIndex-value-accessor.d.ts(3,22): error TS2307: Cannot find module 'ui/core/view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/text-value-accessor.d.ts(3,22): error TS2307: Cannot find module 'ui/core/view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/value-accessors/time-value-accessor.d.ts(3,28): error TS2307: Cannot find module 'ui/time-picker'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/view-util.d.ts(1,22): error TS2307: Cannot find module 'ui/core/view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/view-util.d.ts(2,29): error TS2307: Cannot find module 'ui/content-view'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/view-util.d.ts(3,28): error TS2307: Cannot find module 'ui/layouts/layout-base'.
    [0] /Users/konstantin/Documents/Github/the_platform/nativescript/node_modules/nativescript-angular/view-util.d.ts(5,24): error TS2307: Cannot find module 'platform'.
    [0] components.module.ts(18,30): error TS2307: Cannot find module './app/shared/sample/components/app/app.component'.
    [0] components.module.ts(19,31): error TS2307: Cannot find module './app/shared/sample/components/home/home.component'.
    [0] components.module.ts(20,24): error TS2307: Cannot find module './app/shared/sample/components/app/app.routes'.
    [0] components.module.ts(23,28): error TS2307: Cannot find module './app/shared/core/core.module'.
    [0] components.module.ts(24,30): error TS2307: Cannot find module './app/shared/sample/sample.module'.
    [0] mobile/analytics/index.ts(6,34): error TS2307: Cannot find module '../../app/shared/analytics/index'.
    [0] mobile/core/services/ns-app.service.ts(6,24): error TS2307: Cannot find module 'application'.
    [0] mobile/core/services/ns-app.service.ts(7,34): error TS2307: Cannot find module 'platform'.
    [0] mobile/core/services/ns-app.service.ts(20,28): error TS2307: Cannot find module '../../../app/shared/core/services/app.service'.
    [0] mobile/core/services/ns-app.service.ts(21,24): error TS2307: Cannot find module '../../../app/shared/core/utils'.
    [0] mobile/core/services/ns-app.service.ts(22,61): error TS2307: Cannot find module '../../../app/shared/core/index'.
    [0] mobile/core/services/ns-app.service.ts(23,34): error TS2307: Cannot find module '../../../app/shared/analytics/index'.
    [0] mobile/core/services/ns-app.service.ts(25,31): error TS2307: Cannot find module '../../../app/shared/i18n/index'.
    [0] mobile/core/services/window-native.service.ts(2,26): error TS2307: Cannot find module 'ui/dialogs'.
    [0] mobile/core/services/window-native.service.ts(3,24): error TS2307: Cannot find module 'platform'.
    [0] mobile/core/services/window-native.service.ts(6,25): error TS2307: Cannot find module '../../../app/shared/core/interfaces/iwindow'.
    [0] mobile/core/utils/actionbar.util.ts(1,25): error TS2307: Cannot find module 'ui/frame'.
    [0] mobile/core/utils/actionbar.util.ts(2,41): error TS2307: Cannot find module 'ui/action-bar'.
    [0] mobile/core/utils/actionbar.util.ts(3,22): error TS2307: Cannot find module 'application'.
    [0] mobile/core/utils/actionbar.util.ts(4,35): error TS2307: Cannot find module 'platform'.
    [0] native.module.ts(20,8): error TS2307: Cannot find module './app/shared/core/index'.
    [0] native.module.ts(21,30): error TS2307: Cannot find module './app/shared/sample/components/app/app.component'.
    [0] native.module.ts(22,24): error TS2307: Cannot find module './app/shared/sample/components/app/app.routes'.
    [0] native.module.ts(25,28): error TS2307: Cannot find module './app/shared/core/core.module'.
    [0] native.module.ts(36,24): error TS2307: Cannot find module './app/shared/core/index'.
    [0] native.module.ts(37,22): error TS2307: Cannot find module 'ui/page'.
    [0] native.module.ts(49,27): error TS2307: Cannot find module './app/shared/sample/services/app-config'.
    [0] vendor-platform.android.ts(11,1): error TS2304: Cannot find name 'require'.
    [0] vendor-platform.android.ts(12,1): error TS2304: Cannot find name 'require'.
    [0] vendor-platform.android.ts(13,1): error TS2304: Cannot find name 'require'.
    [0] vendor-platform.android.ts(15,5): error TS2304: Cannot find name 'global'.
    [0] vendor-platform.android.ts(16,5): error TS2304: Cannot find name 'global'.
    [0] vendor-platform.android.ts(18,20): error TS2304: Cannot find name 'require'.
    [0] vendor-platform.android.ts(20,20): error TS2304: Cannot find name 'require'.
    [0] vendor-platform.android.ts(22,20): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(1,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(3,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(4,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(5,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(6,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(7,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(8,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(9,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(11,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(12,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(13,1): error TS2304: Cannot find name 'require'.
    [0] vendor.ts(14,1): error TS2304: Cannot find name 'require'.
  2. Sass problem, common not found:

    [23:17:04] Using gulpfile ~/rootfolder/gulpfile.ts
    [23:17:04] Starting 'build.tns'...
    [23:17:04] Starting 'build.assets.tns'...
    [23:17:05] Finished 'build.assets.tns' after 461 ms
    [23:17:05] Starting 'build.tns_html_css'...
    Error in plugin 'sass'
    Message:
    nativescript/src/app.android.scss
    Error: File to import not found or unreadable: common.
       Parent style sheet: /../rootfolder/nativescript/src/app.android.scss
        on line 1 of nativescript/src/app.android.scss
    >> @import 'common';
  3. Cannot find shared/core:

    [1] file:///app/native.module.js:5:22: JS ERROR Error: Could not find module './app/shared/core/index'. Computed path '/Users/konstantin/Library/Developer/CoreSimulator/Devices/A51760AD-2774-4DF3-AC32-408F21CC467C/data/Containers/Bundle/Application/8A90A6B9-1C2A-4918-A479-989916C5931F/nativescript.app/app/app/shared/core/index'.
    [1] Mar 22 23:19:17 Konstantins-MacBook-Pro com.apple.CoreSimulator.SimDevice.A51760AD-2774-4DF3-AC32-408F21CC467C.launchd_sim[45674] (UIKitApplication:com.yourdomain.nativescript[0x6804][45992]): Service exited due to Segmentation fault: 11

Regardless, the simulator starts up, but unfortunately no application shows up.

Your help is much appreciated :)

NathanWalker commented 7 years ago

All issues cleared here - best way to move forward: