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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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