🐛 Fix yarn prod for current Angular version#746
Merged
kevin-atnos merged 1 commit intoLINCnil:masterfrom Jan 29, 2024
Merged
Conversation
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.
Collaborator
|
Hello! Indeed we have noticed this issue too. Regards, |
kevin-atnos
approved these changes
Jan 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsfile, which wasn't updated to match thesrc/environments/environment.tsfile.Before the fix,
yarn prodfails with this error:After the fix,
yarn prodsucceeds.