NativeScript / nativescript-dev-webpack

A package to help with webpacking NativeScript apps.
Apache License 2.0
97 stars 49 forks source link

Preview Angular with Lazy Routes - TypeError: Cannot read property 'kind' of undefined #960

Closed DimitarTachev closed 5 years ago

DimitarTachev commented 5 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

To Reproduce 1) Download the attached sample project. 2) tns preview 3) Scan 4) You will get TypeError: Cannot read property 'kind' of undefined Webpack compilation error and the app will crash.

Expected behavior The app should run on the device.

Sample project NSPlayground.zip

Additional context It seems that the issue is caused by the decomposition in the main NgModule configuration.