Solution #2: Cannot determine the module for class SlimSliderDirective...

Consider the second complete error mentioned in the Preparing to use webpack section:

ERROR in Cannot determine the module for class SlimSliderDirective in /path/to/TNSStudio/app/modules/player/directives/slider.directive.android.ts! Add SlimSliderDirective to the NgModule to fix it.Cannot determine the module for class SlimSliderDirective in /path/to/TNSStudio/app/modules/player/directives/slider.directive.ios.ts! Add SlimSliderDirective to the NgModule to fix it.

The solution to the preceding error is to open tsconfig.aot.json, and make the following change:

BEFORE:  ...  "exclude": [    "node_modules",    "platforms"  ],AFTER:  ...  "files": [    "./app/main.ts"  ]

Since AoT compilation ...

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.