Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80423

[REG 5.13.2 -> 5.14] ECMAScript module import fails when importing multiple named exports or aliasing named exports

    XMLWordPrintable

Details

    • Windows
    • 75c7f093e0b8e321306ae1189b71866a9073df00 (qt/qtdeclarative/5.14.0)

    Description

      When mjs files contain multiple named imports like

      import {retrieve, defaults, extend, each} from '/lib/src/core/util.mjs';

      or named imports with alias like

      import {applyTransform as v2ApplyTransform} from '/lib/src/core/vector.mjs';

      or combinations like

      import {
         getLayoutRect,
         box as layoutBox,
         positionElement
      } from '../../util/layout.mjs';

      compilation fails with "Error compiling js file" and "error: Expected token `,'".

       

      Compilation worked fine with 5.13.2 - we didn't change a single mjs file.

       

      Attachments

        For Gerrit Dashboard: QTBUG-80423
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            attisan Attila Santo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes