Bug Report T952817
Visible to All Users

The 'Super expression must either be null or a function' error appears in a deployed app after upgrade to v.20.2.3

created 4 years ago (modified 4 years ago)

The issue appears between 20.2.2-alpha-20239-0312 (was OK) — 20.2.2-alpha-20254-0313 (not OK)

One other point is that I cannot get any problem to happen locally. Even when I do the same build and enableProdMode() as I do in our TEST environment - it all works fine. No errors at all.
This problem is only occurring when built and released (using Azure DevOps) to Azure. We put the Client Website in Azure Storage and serve it from there.
ie the following causes the problem in Azure - but not locally.

We assume that the issue is related to uglify. People encounter the same error when using uglify:
Issue 1
Uncaught TypeError: Super expression must either be null or a function with BUILD
fix: use terser as uglify throws a super expression error
uglifyjs-webpack: TypeError: Super expression must either be null or a function, not undefined

Show previous comments (2)

    Yes many many thanks. This fixes our problem.

      Code
      Could not read source map for webpack://DevExpress.Quill/node_modules/quill-delta/dist/Delta.js?: Unexpected 503 response from webpack://DevExpress.Quill/node_modules/quill-delta/dist/Delta.js.map: Unsupported protocol "webpack:"
      Code
      Could not read source map for webpack://DevExpress.Quill/node_modules/quill-delta/dist/AttributeMap.js?: Unexpected 503 response from webpack://DevExpress.Quill/node_modules/quill-delta/dist/AttributeMap.js.map: Unsupported protocol "webpack:"
      Code
      Could not read source map for webpack://DevExpress.Quill/node_modules/quill-delta/dist/Iterator.js?: Unexpected 503 response from webpack://DevExpress.Quill/node_modules/quill-delta/dist/Iterator.js.map: Unsupported protocol "webpack:"
      Code
      Could not read source map for webpack://DevExpress.Quill/node_modules/quill-delta/dist/Op.js?: Unexpected 503 response from webpack://DevExpress.Quill/node_modules/quill-delta/dist/Op.js.map: Unsupported protocol "webpack:"
      DevExpress Support Team 4 years ago

        Hello,

        I've created a separate ticket on your behalf (T954173: "Could not read source map for webpack" error with DevExpress Quill). It has been placed in our processing queue and will be answered shortly.

        Answers approved by DevExpress Support

        created 4 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.