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
263 stars 271 forks source link

Yarn Prod command fails on pia version 3.2.2. #745

Closed ektorasdj closed 9 months ago

ektorasdj commented 9 months ago

Hello and thank you for this tool. When trying to run yarn prod (after yarn install) inside the /var/www/pia I get 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)

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Can you help me?

syl-p commented 9 months ago

We just merged a pull request from a contributor fixing this issue. https://github.com/LINCnil/pia/pull/746/files

Thanks for reporting this problem. To get yarn prod succeded, just "git pull" on the master branch.