Wednesday, December 6, 2017

Re: Elemental2 Error

Thanks for replying. I did have 

<inherits name='elemental2.dom.Dom'/> included in the XXX.gwt.xml


Joe 


On Wednesday, December 6, 2017 at 8:36:18 PM UTC-5, Juan Pablo Gardella wrote:
Did you include elemental2.dom.Dom  module? Check at https://github.com/google/elemental2#gwt

On Wed, 6 Dec 2017 at 19:34 Joe Wu <joe....@gmail.com> wrote:
I have been using GWT for a while but I am new to elemental2, I have tried the following code to create new navigator object in GWT:

import elemental2.dom.Navigator;


and for entrypoint


private Navigator Nav = new Navigator(); 


the following are the first several lines of the error message I got during compile:

 

            [ERROR] elemental2.dom.Navigator cannot be resolved to a type

         [ERROR] Errors in 'elemental2/dom/Navigator.java'

            [ERROR] elemental2.dom.ServiceWorkerContainer cannot be resolved to a type

         [ERROR] Errors in 'elemental2/dom/BatteryManager.java'

            [ERROR] elemental2.dom.EventTarget cannot be resolved to a type


can anyone help? 


Thanks,

Joe



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment