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

Javascript dynamic import shows as error in editor but executes fine in browser

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 12.0, 12.4, 12.5
    • None
    • javascript - Editor
    • Windows 10
      Java 13
      Chrome Version 84.0.4147.89 (Official Build) (64-bit)

    Description

      Javascript dynamic import  shows error on "import" statement yet runs fine in Chrome browser

      Possible duplication of NETBEANS-4597 - not sure

      Documentation reference to MDN is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

      Netbeans Project properties - JavaScript - ECMAScript set to 7 and then to 6 - no effect.

       Script source code:
      async function importTest()

      { const

      { WebSockets }

      = await import('./app/WebSockets.js');

      }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            grahams777 Graham Smith

            Dates

              Created:
              Updated:

              Slack

                Issue deployment