Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6319

Editor flags javascript error on "return import(varname);"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 12.6
    • None
    • javascript - Editor
    • None
    • Ubuntu 20.04.3
      NetBeans 12.6

    Description

      Editor flags 

       return import(filepath);

      as an error in babel/core/lib/config/files/import .js
      "Expected an operand but found import"

       

      "use strict";
      Object.defineProperty(exports, "__esModule", {
        value: true
      });
      exports.default = import_;
      function import_(filepath) {
        return import(filepath);
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jwoehr Jack J. Woehr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: