LINCnil / pia

Version web front office de l’application PIA Ă  dĂ©ployer sur un serveur afin d’en donner l’accĂšs via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.
GNU General Public License v3.0
262 stars 270 forks source link

🐛 Fix `yarn prod` for current Angular version #746

Closed busser closed 7 months ago

busser commented 7 months ago

It seems that since the project updated to a newer version of Angular, the production build doesn't work anymore. I tracked the issue down to the src/environments/environment.prod.ts file, which wasn't updated to match the src/environments/environment.ts file.

Before the fix, yarn prod fails with this error:

./src/environments/environment.ts:5:11-30 - Error: Should not import the named export 'version' (imported as 'packageJson') from default-exporting module (only default export is available soon)

After the fix, yarn prod succeeds.

kevin-atnos commented 7 months ago

Hello!

Indeed we have noticed this issue too. Thank you for your contribution, we are merging it right now!

Regards,