[MGNLFE-89] Incompatible with Mobify: Uncaught TypeError: Super expression must either be null or a function Created: 19/Jan/21  Updated: 26/Jan/21  Resolved: 21/Jan/21

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.6

Type: Bug Priority: Major
Reporter: Bartosz Staryga Assignee: Canh Nguyen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 5h
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLFE-90 Publish 1.0.6 of of frontend helpers ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: SPA Editor
Sprint: HL & LD 20
Story Points: 1

 Description   

With production react-editor we get: Uncaught TypeError: Super expression must either be null or a function
error happens when using production file with Mobify bundler.
It is due the minification plugin in Webpack.

More about bug and solution can be found here:
https://github.com/facebook/create-react-app/issues/7236

PR with fix:
https://git.magnolia-cms.com/projects/MODULES/repos/frontend-helpers/pull-requests/42/overview

 

Please also publish the libraries to npm so that they can be used now with Mobify.

Note that TemplateAnnotations library which includes the new `onFrameReady` must also be published and the react-editor must depend on that version.


Generated at Mon Feb 12 05:44:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.