Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-89

Incompatible with Mobify: Uncaught TypeError: Super expression must either be null or a function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.6
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                canh.nguyen Canh Nguyen
                bstaryga Bartosz Staryga
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 5h
                      5h