Giter Site home page Giter Site logo

AOT compile about ngx-sharebuttons HOT 5 CLOSED

murhafsousli avatar murhafsousli commented on May 30, 2024
AOT compile

from ngx-sharebuttons.

Comments (5)

MurhafSousli avatar MurhafSousli commented on May 30, 2024

Hi @doorman02, yes it supports AOT, reinstall it again and let me know if it's fixed

from ngx-sharebuttons.

doorman02 avatar doorman02 commented on May 30, 2024

Hi @MurhafSousli I reinstalled but I got the compile error
Property 'tCount' is private and only accessible within class 'ShareButtonsComponent'.
and for private property 'buttons' as well.
For now I manually changed both props to public and the AOT compilation worked.

Thanks for your help.

from ngx-sharebuttons.

u12206050 avatar u12206050 commented on May 30, 2024

We are having a similar issue but with Angular Universal and ng2-sharebuttons, the only error message we get is Uncaught Exception invalid token export If we remove ng2-sharebuttons, then this error disappears. Any ideas?

from ngx-sharebuttons.

tinesoft avatar tinesoft commented on May 30, 2024

Hi guys,

@doorman02: Sorry, we indeed miss that in PR #21.
I'll have a look tonight.

@u12206050: did you try temporary fix mentioned by @doorman02? (removing private modifier from tCount and buttons in share-buttons.component.js?

Cheers,

from ngx-sharebuttons.

sdsanders avatar sdsanders commented on May 30, 2024

Can confirm that this is fixed in Angular Universal. I was getting the same Uncaught Exception invalid token export using version 1.1.5 but updating to version 2.0.0 (currently published as beta on npm) fixed it for me. 👍

from ngx-sharebuttons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.