Build failing with getClosestFocusable without any code change

error during build:
Error: ‘getClosestFocusable’ is not exported by node_modules/@vaadin/component-base/src/focus-utils.js, imported by node_modules/@vaadin/overlay/src/vaadin-overlay.js

does this have to do anything with vaadin ?

There is a follow up link : https://github.com/vaadin/flow/issues/18149

Yes, next patch release contains a fix. Workaround: use npm