Vaadin Tutorial - Grid Import Error

Hi guys,

I am new with in Vaadin dev and was trying this tutorial: https://vaadin.com/docs/-/part/framework/tutorial.html?utm_campaign=New%20registration&utm_source=hs_automation&utm_medium=email&utm_content=39610603&_hsenc=p2ANqtz-9J0GWB76XD4LL9NHt-WRUC-E5onSmFjqfdvBLGx-nVCQTGpPMAPU2-TPZxq7vBljsjIftM7f5F-FnNkB__9-cSqc3Geg&_hsmi=39610603

I have an error, when I type in this line: private Grid grid = new Grid<>(Customer.class);
I imported the following: import com.vaadin.ui.Grid;

The error: The type Grid is not generic; it cannot be parameterized with arguments

Any ideas?

KR

Hi,

my guess is that you’re using an older version of Vaadin (probably Vaadin 7.x). If you’re starting a new project, I’d suggest using Vaadin 8, the latest release being 8.0.6.

-Olli

Hi Olli,

yeah you were right! Thanks.

KR

No problem, glad to hear that was all :slight_smile:

-Olli