Skip to content
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

Added check that template does not use both requirejs and webpack #35449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orangejenny
Copy link
Contributor

Technical Summary

This would have prevented https://dimagi.atlassian.net/browse/SAAS-16313, which was caused by a template using requirejs while inheriting from a template that used webpack.

Safety Assurance

Safety story

Adds a check for an error condition that breaks pages.

Automated test coverage

In PR

QA Plan

Not requesting QA

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@orangejenny orangejenny added the product/invisible Change has no end-user visible impact label Nov 27, 2024
@@ -726,13 +726,20 @@ class RequireJSMainNode(template.Node):
def __init__(self, name, value):
self.name = name
self.value = value
self.origin = None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed this to get the exception to display in my browser locally. Without it, an error about origin not being found supersedes the original exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant