I have Vaadin 24.5.4 application in production mode (<vaadin.productionMode>true</vaadin.productionMode>), OpenJDK 17.0.13-12, nodejs 20.18.0. When I navigate to my view with dynamic created Grid I see the following in JavaScript console:
This looks similar to this recent issue Production build breaks future development · Issue #20294 · vaadin/flow · GitHub, but that issue was in having errors in dev mode after production build.
Could you please try deleting src/main/bundles folder, clean build/target folder, delete src/main/frontend/generated and build for production once again?