-
-
Notifications
You must be signed in to change notification settings - Fork 40
nativescript-telerik-ui not supporting AoT compilation #31
Comments
I haven't seen this error before. Could you post your project somewhere on GitHub, so I can reproduce it on my end? |
Here is a link to the project (https://github.com/newapx/nativescipt.sidedraw-webpack) |
Thanks for the project! It turns out the nativescript-telerik-ui package doesn't ship component metadata yet (Hence no AoT support). I opened an issue on their tracker. Until we get this fixed, it should be possible to use the dynamic platform without the ng-tools webpack loader, but I would recommend against that, since it will ship the entire compiler codebase in the app. Ping @VladimirAmiorkov |
Same here:
Can any one please help me here to resolve the issue when using 'nativescript-dev-webpack'. |
@imaginationcoder The current 1.5.1 version of the nativescript-telerik-ui plugin does not support AoT compilation which is by default enabled in nativescript-dev-webpack. We are already working on resolving this issue and we are expecting to release a version 1.6.1 which should include the mentioned support for AoT compilation. We apologize for any inconvenience that this might by causing. |
@VladimirAmiorkov thank you for your quick reply.. is there any chance to me expect the release date of version 1.6.1? |
@imaginationcoder The 1.6.1 release is planned to be out in a week after the 1.6.0 release which is doe to be released in two weeks. |
@VladimirAmiorkov sorry for bugging you, but are there any chances that mentioned 1.6.1 version will be released soon? Thanks! |
I can confirm this works now 👍 |
I'm getting the following error now:
|
@nraboy Make sure to remove the sidedrawer import from the declarations of your AppModule. |
Yes I did. The error is happening after I had done this. This is what my file looks like:
As you can see nothing stands out. Then I try to use my Best, |
@nraboy Are you sure no other component in your app is importing the from |
I have this in one of my components:
Without the import, the definitions will throw errors. |
@nraboy This all looks fine, can you wrap a test project and send it to me, without being able to reproduce this issue on my end I cannot help you further. |
@VladimirAmiorkov
|
I am also running into the same issue. I tried with the combinations u have mentioned. still issue persist, please suggest if there is anything else you did |
@Salahudeen Did you make sure to clean the project (delete node_modules, platforms and maybe the npm cache) |
Tried the same now, but no luck. The issue still persists. Some more points on my project setup.
ERROR in Type RadSideDrawerComponent in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts is part of the declarations of 2 modules: NativeScriptUISideDrawerModule in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts and SideNavModule in nativescript/app/app/shared/side-nav/side-nav.module.ts! Please consider moving RadSideDrawerComponent in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts to a higher module that imports NativeScriptUISideDrawerModule in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts and SideNavModule in nativescript/app/app/shared/side-nav/side-nav.module.ts. You can also create a new NgModule that exports and includes RadSideDrawerComponent in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts then import that NgModule in NativeScriptUISideDrawerModule in nativescript/node_modules/nativescript-telerik-ui-pro/sidedrawer/angular/side-drawer-directives.d.ts and SideNavModule in nativescript/app/app/shared/side-nav/side-nav.module.ts. |
Did you import the correct ngModule like @imaginationcoder posted earlier? If you can share some of your app implementation I can take a look at it, like the bootstrap component etc. |
@VladimirAmiorkov Thanks for pointing me in the right direction. I was importing SIDEDRAWER_DIRECTIVES in the module where i implemented the side navigarion, changing that to import the NativeScriptUISideDrawerModule solved the issue. |
@Salahudeen you are welcome if you have any questions, bug reports or feature requests for the nativescript-telerik-ui plugin you can stop by our won feedback repo here: https://github.com/telerik/nativescript-ui-feedback/issues |
Closing this issue, AoT should work with nativescript-telerik-ui and nativescript-telerik-ui-pro plugins version 1.6.1 or above |
@VladimirAmiorkov Still doesn't work for me, so I am not sure why you are closing this. |
@nraboy Can you send me a working project that reproduces this issue as from all of my testing with the code snippets and the discussion with other in this thread after correctly importing the You can find information on how to bootstrap your project so that AoT is supported by for the nativescript-telerik-ui plugin in our documentation here. We have reopened the issue and require more information from anyone experiencing such issues. |
Just to follow up here. I've upgraded from CLI 2.5.2 to 2.5.4 and all my problems regarding UI have been resolved. No idea why, but I'll take it :-) |
@nraboy Hmm I will take a closer look at that combination, thank you for the information, can you tell me which version of nativescript-telerik-ui you are using on those tests? |
Hello Guys, Unexpected module 'NativeScriptUISideDrawerModule in /../myproject/node_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.d.ts' declared by the module 'AppModule in /.../myproject/app/app.module.ts' As comment, Im using telerik-ui 1.6.2. Sorry my bad. It is working. |
Use version 0.2.11
After the command
npm run start-android-bundle
in stepwebpack --config = webpack.android.js --progress
out errorError: Unexpected value 'SIDEDRAWER_DIRECTIVES' declared by the module 'AppModule'
in
\node_modules\@angular\compiler\bundles\compiler.umd.js:14722:29
Use Angular, AppModule is main and one application module.
SIDEDRAWER_DIRECTIVES from plugins
nativescript-telerik-ui
The text was updated successfully, but these errors were encountered: