#Hm we ran into an interesting regression
1 messages · Page 1 of 1 (latest)
It looks like this only occurs in production builds after upgrading to 14.2.3. If we set swcMinify: false in our next config it fixes it. Downgrading to 14.1.4 also fixes it.
I haven't seen it yet and I use a lot of lazy-loaded components with ssr: false, we just updated to the latest version so I will keep it in mind and let you know in case I ever see this behavior 
I think it turns out to be due to a regression with the swc compiler and swcMinify: true: https://github.com/vercel/next.js/issues/46887#issuecomment-2111778234
I put together a reproduction of the bug we were experiencing: https://github.com/kcrwfrd/next-swc-minify-bug-reproduction
It involves another dependency so it's not especially well-isolated.