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

fix(redwood): ensure TagCountFactory is bundled in production #727

Draft
wants to merge 1 commit into
base: opencraft-release/redwood.1
Choose a base branch
from

Conversation

Agrendalath
Copy link
Member

@Agrendalath Agrendalath commented Jan 7, 2025

Remove the static:webpack directive and use add_webpack_js_to_fragment to properly include TagCountFactory in production. The previous solution (openedx#34059) did not correctly bundle this factory, causing the ReferenceError: TagCountFactory is not defined JS error in the Studio preview.

Testing instructions

  1. Check out this branch.
  2. Run tutor dev exec cms npm run webpack.
  3. View a unit in Studio and ensure that there is no ReferenceError: TagCountFactory is not defined error in the console logs.

Private-ref: TBD

@Agrendalath Agrendalath self-assigned this Jan 7, 2025
@Agrendalath Agrendalath changed the title fix(xblock): ensure TagCountFactory is bundled in production fix(redwood): ensure TagCountFactory is bundled in production Jan 7, 2025
Remove the `static:webpack` directive and use `add_webpack_js_to_fragment`
to properly include TagCountFactory in production. The previous solution
did not correctly bundle this factory, causing the `ReferenceError:
TagCountFactory is not defined` JS error in the Studio preview.
@Agrendalath Agrendalath force-pushed the agrendalath/fix-studio-preview-redwood branch from 57ac262 to d4e574f Compare January 7, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant