by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Adrien Baron
    @adrienbaron
    v-pre makes Vue think this is just "text" so it probably break the ref. The ignoreElements seems to be explicitely defined for your use case 👍
    (Meaning telling vue "Yeah I know, you don't know this native element, but trust me, it exists")
    Yogh
    @yogh_gitlab
    Vue.getConfig().addIgnoredElement("sizer-element"); works brilliantly, thanks!
    Adrien Baron
    @adrienbaron
    @yogh_gitlab great! You're probably the first person to use it in Vue GWT ^^
    Yogh
    @yogh_gitlab
    wups it actually didn't, got a cast exception when the addIgnoredElement method tried to cast from String to JsString
    this works though:
        final JsString str = Js.cast(ignoredElement);
        this.ignoredElements.push(str);
    I believe it tries to cast to a list because .push is a T... varargs
    Colin Alworth
    @niloc132
    varargs in java means you wrap in a java array - but varargs in jsinterop means it will behave as expected in js
    if you examine the generated JS, you'll see that the compiler likely did what you expected with regard to the array at least
    the String vs JsString is a different issue than varargs i _think? unless i'm misunderstanding you
    i may be totally misunderstanding you. what exactly is the classcastexception error message?
    24 replies
    Matt Davis
    @mdavis95
    Is Vue gwt going to support Vue 3?
    Adrien Baron
    @adrienbaron
    Hey @mdavis95 , it's definitely something I want to do :thumbsup: ! As usual I'm quite busy so not sure when I'll find the time, contribution in that direction are welcome :thumbsup:
    One of the main feature from Vue 3 is the Composition API, it sounds cool, but I don't think it will fit very well Java as a language, so we first might want to support Vue 3 as a lib, without the composition API?
    Other things that Vue 3 brings is tree shaking at the library level, not sure that's doable without something like the graddle/webpack setup
    Easiest first step hopefully would be simply switching full build of Vue 2 with full build of Vue 3 in Vue GWT
    If you guys want to experiment feel free to have fun with it :thumbsup:
    Payam Meyer
    @payammeyer
    doesn't quite sound fun to me ...
    Adrien Baron
    @adrienbaron
    Ahah working on Vue GWT is a lot of fun :)! There is also a whole suite of test that will let us make sure that nothing is broken :)
    Payam Meyer
    @payammeyer
    I love making applications using what you've built
    Adrien Baron
    @adrienbaron
    Thanks :), I'm glad you enjoy it!
    Dr. Lofi Dewanto
    @lofidewanto_twitter

    Did someone try to compile VueGWT webapp with Java 11?

    I got following error:

    Caused by: java.lang.NullPointerException
        at com.axellience.vuegwt.processors.component.template.builder.compiler.VueTemplateCompiler.initEngine(VueTemplateCompiler.java:31)
        at com.axellience.vuegwt.processors.component.template.builder.compiler.VueTemplateCompiler.<init>(VueTemplateCompiler.java:20)
        at com.axellience.vuegwt.processors.component.template.builder.TemplateMethodsBuilder.compileTemplateString(TemplateMethodsBuilder.java:55)
        at com.axellience.vuegwt.processors.component.template.builder.TemplateMethodsBuilder.addTemplateMethodsToComponentExposedType(TemplateMethodsBuilder.java:39)

    With Java 8 Oracle I could compile it without error...

    I'm using 1.0-beta-9
    Payam Meyer
    @payammeyer
    I’m pretty sure we did at some point, we are on Java 14 now, no issues.
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @payammeyer : hmm wyrd... I'm trying also with Java 12 (all OpenJDK / Adopt OpenJDK) same error... Only Java 8 Oracle works fine... I'm using MacOS...
    Adrien Baron
    @adrienbaron
    Hey you might want to try the Beta 10 SNAPSHOT :)
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @adrienbaron I'll try... wait a bit 😀
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @adrienbaron WIth Beta 10 SNAPSHOT the compilation with Java 11 is working without any NullPointerException... 👍So it's time to make a new release? 😉
    Payam Meyer
    @payammeyer
    Oh right, sorry, I guess I should have mentioned we are on the latest.
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @payammeyer : yes, thanks...
    Adrien Baron
    @adrienbaron
    Ahah yeah I need to get around and release it.. I think people here have been using the snapshot for a while so it should be safe to do :+1: , what do you guys think?
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    Also working with GWT 2.9... 👍
    Update my gwt-boot-modules and gwt-boot-samples for VueGWT...
    Payam Meyer
    @payammeyer
    I’d say yes to the release
    Adrien Baron
    @adrienbaron
    Thanks @lofidewanto !
    Thanks @payammeyer !
    Matt Davis
    @mdavis95
    +1
    Oleg Rachaev
    @prapovednic_gitlab
    Hi! I have a problem with gradle plugin for moden webapp

    How can I use both plugins?

    https://github.com/ascendtech/gwt-gradle
    https://github.com/esoco/gwt-gradle-plugin

    I have error:
    * What went wrong:
    An exception occurred applying plugin request [id: 'us.ascendtech.gwt.modern', version: '0.5.1']

    Failed to apply plugin [class 'us.ascendtech.gwt.lib.GWTLibPlugin']
    Cannot add extension with name 'gwt', as there is an extension already registered with that name.**

    I just trying to setup vuegwt+gwt2.9.0 gradle project on IDEA.
    Matt Davis
    @mdavis95
    Can you give me an idea why you are trying to use both plugins?
    Oleg Rachaev
    @prapovednic_gitlab
    I always using for my project gwt gradle plugin https://github.com/esoco/gwt-gradle-plugin
    All my gwt project are on that plugin
    Matt Davis
    @mdavis95
    It seems like both plugins you gwt { settings } as configuration so they conflict
    The ascendtech modern plugin was really designed from the ground up to handle vue
    Oleg Rachaev
    @prapovednic_gitlab
    Is it common that independent plugins conflict?
    Matt Davis
    @mdavis95
    I dont think so, but I think it is rare that you would use two plugins to do the same thing
    Oleg Rachaev
    @prapovednic_gitlab
    Soo can your plugin completly replace that plugin I'm using before?
    Are they have equal functionality?