The custom element definition was finalized before a style module was registered

Just noticed this warning in the browser log. It is the first entry when I reload the page:

The custom element definition for “vaadin-selection-grid” was finalized before a style module was registered

It doesn’t seem to cause any issues; vaadin-selection-grid seems to work and be styled as expected.
Still; I’d like to understand it. Am I building it wrong?

<project>

    <artifactId>ptsmc-widgetset</artifactId>
    <packaging>jar</packaging>

    <properties>
        <vaadin.version>25.0.6</vaadin.version>
        <vaadin.plugin.version>25.0.6</vaadin.plugin.version>
        <selection.grid.version>4.0.1</selection.grid.version>
        <vaadin.productionMode>true</vaadin.productionMode>
    </properties>

    <dependencies>

        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-core</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.vaadin</groupId>
                    <artifactId>hilla-dev</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.vaadin.componentfactory</groupId>
            <artifactId>selection-grid-flow</artifactId>
            <version>${selection.grid.version}</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>

            <!--
                Take care of synchronizing java dependencies and imports in
                package.json and main.js files.
                It also creates webpack.config.js if not exists yet.
            -->
            <plugin>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-frontend</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <!-- Production mode is activated using -Pproduction -->
            <id>production</id>
            
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>

            <dependencies>
                <!-- Exclude development dependencies from production -->
                <dependency>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-core</artifactId>
                    <scope>provided</scope>
                    <exclusions>
                        <exclusion>
                            <groupId>com.vaadin</groupId>
                            <artifactId>vaadin-dev</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>build-frontend</goal>
                                </goals>
                                <phase>compile</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <optimizeBundle>false</optimizeBundle>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>

Have the same problem for “vaadin-text-field” and “vaadin-grid” even I don’t habe a Grid on this page. I’m on Vaadin 25.0.3, I didn’t exclude “com.vaadin.hilla-dev” and have no dependency for “selection-grid-flow” in pom.xml.