Grid Error -> (TypeError) : $0.$connector.reset is not a function

Hi there,

we are getting a strange error when adding a grid to our application (any view).
We can’t figure out why this is happaning. Maybe someone can point us at the right direction.

Spring Boot 2.0 Application
Vaadin 10 Beta3 (stays the same at Beta5)

Greetings,
Sebastian
17033075.png
17033078.png

Hi Sebastian!

Are those the only client-side erros you get? I would guess that your app fails to serve gridConnector.js file that is packaged with the Grid component. But in that case the first error should be about failing to load that resource.

My friend tested using Grid with our [skeleton-starter-flow-spring]
(https://github.com/vaadin/skeleton-starter-flow-spring) and it works fine. Maybe you can check from that project how to set up everything to make Vaadin 10 work with Spring.

Still getting this error. Downloaded my-starter-project (spring boot and vaadin )and added a grid with 2 records in it and getting the error. Any help would be appreciated.

	public MainView(@Autowired MessageBean bean) {
        Button button = new Button("Click me",
                e -> Notification.show(bean.getMessage()));
        add(button);
        Grid<Person> grid = new Grid<>(Person.class);
        add(grid);
        grid.setHeight("300px");
		grid.setColumns("firstName","lastName","email");
		
		grid.setItems(initGrid());
		
		
    }
    
    
    List<Person> initGrid() {
    	ArrayList<Person> people = new ArrayList<>();

    	Person aPerson = new Person();
    	aPerson.setFirstName("Joe");
    	aPerson.setLastName("Smith");
    	aPerson.setEmail("joe.smith@abc.com");
    	people.add(aPerson);
    	
    	aPerson = new Person();
    	aPerson.setFirstName("Patrick");
    	aPerson.setLastName("Baker");
    	aPerson.setEmail("patrick.baker@abc.com");
    	people.add(aPerson);
    	
    	
    	return people;
    }

See attachments ( error and project)

17569154.png
17569157.rar (41.4 KB)

Publius,

Are you on 13.0.0beta by any chance? If so, try upgrading to 13.0.1. I had a grid error that was introduced in 13.0.0.beta1-5. It was resolved in 13.0.1.

https://github.com/vaadin/vaadin-grid/issues/1565

I had this error recently in Firefox, it didn’t clear out until I cleared my browser history.

Thank you for the reply Martin.

I believe the startup project is 13.0.1 (see portion of the pom.xml below)

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.gmail.publius</groupId>
    <artifactId>my-starter-project</artifactId>
    <name>My Starter Project</name>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <!-- Dependencies -->
        <vaadin.version>13.0.1</vaadin.version>
    </properties>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.2.RELEASE</version>
    </parent>

P.S. Then entire project is attached.

Thank you
Publius

Thank you Joe, I tried in Firefox and I do not have the issue.

Joe Briglia:
I had this error recently in Firefox, it didn’t clear out until I cleared my browser history.

Good point. I remember now that I also had to clear my cache to make the problem go away.