Skip to content

build: fix error when dev app is deployed #23864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

crisbeto
Copy link
Member

The index.html of the dev app assumes that the DEV_APP_VARIABLES global variable will always be present, but that's not the case when it is deployed. This causes an error which prevents the Google Maps script from loading.

These changes add a null check, as well as some docs about the variables.json.

The `index.html` of the dev app assumes that the `DEV_APP_VARIABLES` global variable will always be present, but that's not the case when it is deployed. This causes an error which prevents the Google Maps script from loading.

These changes add a null check, as well as some docs about the `variables.json`.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent merge safe labels Oct 31, 2021
@crisbeto crisbeto requested review from devversion and a team as code owners October 31, 2021 07:34
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 31, 2021
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Oct 31, 2021
@jelbourn jelbourn added target: minor This PR is targeted for the next minor release target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release target: minor This PR is targeted for the next minor release labels Nov 2, 2021
@jelbourn jelbourn merged commit 4579377 into angular:master Nov 2, 2021
jelbourn pushed a commit that referenced this pull request Nov 2, 2021
The `index.html` of the dev app assumes that the `DEV_APP_VARIABLES` global variable will always be present, but that's not the case when it is deployed. This causes an error which prevents the Google Maps script from loading.

These changes add a null check, as well as some docs about the `variables.json`.

(cherry picked from commit 4579377)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants