demo to reproduce error #no error yarn yarn run dev #error yarn yarn run build yarn run preview #then close the dialog and check the console output