nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

not working for webpack build #83

Closed Sumit-ignistec closed 6 years ago

Sumit-ignistec commented 6 years ago

if I run with tns run build, i able to see carview, but if i run through webpack cardview not displaying

shivgolani commented 6 years ago

@Sumit-ignistec Any luck with the solution?

bradmartin commented 6 years ago

Any more info on this? Versions, any specific error reported?

Lords08 commented 6 years ago

In my case, the solution was to insert this code in main.aot.ts file import { registerElement } from 'nativescript-angular/element-registry'; import { CardView } from 'nativescript-cardview'; registerElement('CardView', () => CardView); image

Hopefully this can help you