Open skhye05 opened 6 years ago
any update on this?
There's a chance of problem with AOT. Will look into it. Mind sharing a small project with your scenario so I can reproduce it easily?
Thanks
Same problem here.
Nevermind, I modified _nodemodules/nativescript-ng-shadow/angular/ng-shadow.module.d.ts
and it works now.
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
@NgModule({
imports: [],
schemas: [
NO_ERRORS_SCHEMA
]
})
export declare class NgShadowModule {
}
You will obviously lose these changes if you delete your node_modules folder, but it could be included in a next version, a pull request, or a fork.
Uhm... @gabitoesmiapodo That works for you? I mean, it compiles but for me it doesn't work after doing that.
@berardo Maybe this could help? https://medium.com/@isaacplmann/getting-your-angular-2-library-ready-for-aot-90d1347bcad https://blog.angularindepth.com/making-your-angular-2-library-statically-analyzable-for-aot-e1c6f3ebedd5
@berardo I've created a PR that should allow for AOT and Web Pack compatibility, please let me know if you have any problems https://github.com/Especializa/nativescript-ng-shadow/pull/14
This is still not solved.
Still not solved ?
I think that this plugin is resulting a delay of navigation in Angular + NativeScript. After removing navigation become faster
I received this error on the release build of the app. I added the import suggested by @gabitoesmiapodo and the release build was successful. However, when running the app, the shadows have been stripped out of the UI.
Well, my comment is from Dec 2017, so that code might be not working now.
Okay. Thanks. ;)
Any quick & dirty fix for this issue? 😄
Subscribing to the guy above
I am running webpack command for android and I am getting this error
`ERROR in Unexpected value 'NgShadowModule in /node_modules/nativescript-ng-shadow/angular/ng-shadow.module.d.ts' imported by the module 'AppModule in app/app.module.ts'. Please add a @NgModule annotation.
ERROR in ./main.aot.ts Module not found: Error: Can't resolve './app.module.ngfactory' in '...App\app' @ ./main.aot.ts 5:29-62