I have a problem on my build with nodeJS with angular. It used to build correctly but since today (maybe last week), when I build with the exact same command, and with some minor changes in the project, I keep having this logs :
[21:08:20.420] Warning: Node.js functions are compiled from ESM to CommonJS. If this is not intended, add "type": "module" to your package.json file.[21:08:20.420] Compiling "chunk-2A5N5EV4.js" from ESM to CommonJS...[21:08:20.471] Compiling "chunk-F53XS6YD.js" from ESM to CommonJS...[21:08:20.476] Compiling "chunk-IWDGQLYK.js" from ESM to CommonJS...[21:08:20.480] Compiling "chunk-M475QDW2.js" from ESM to CommonJS...[21:08:20.484] Compiling "chunk-6BYLF33T.js" from ESM to CommonJS...[21:08:20.489] Compiling "chunk-7VID3LXS.js" from ESM to CommonJS......[21:08:31.168] Compiling "chunk-PFLFAM3J.js" from ESM to CommonJS...[21:08:32.306] Compiling "main-V7NKN3TL.js" from ESM to CommonJS...[21:08:33.227] Compiling "chunk-BFY2DBMX.js" from ESM to CommonJS...[21:08:34.607] Compiling "chunk-V4YHAW2Y.js" from ESM to CommonJS...[21:08:40.901] Build Completed in /vercel/output [4m][21:08:41.788] Deploying outputs...[21:08:57.081] [21:08:57.449] Deployment completedIt first makes the project not workng anymore, and when I try the exact same command on local, it work perfectly and without this "post-compiling" step (note that's appening after the build command I give in vercel configuration)
I wanted to know since when changes on this subject have been made, and how I can find an alternative in order to get the older behavior, since I can't really change the configuration in package.json (I use Nx and I don't have one in the application, only global and on the library and I don't want to change the build system for the library since it's published to npmjs and people are using it)
Thanks :)