Graham Smith created NETBEANS-4614:
--------------------------------------
Summary: Javascript dynamic import dhows as error but executes
fine in browser
Key: NETBEANS-4614
URL: https://issues.apache.org/jira/browse/NETBEANS-4614
Project: NetBeans
Issue Type: Bug
Components: javascript - Editor
Affects Versions: 12.0
Environment: Windows 10
Java 13
Chrome Version 84.0.4147.89 (Official Build) (64-bit)
Reporter: Graham Smith
Javascript dynamic import shows error on "_*import*_" statement yet runs fine
in Chrome browser
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
{color:#de350b}import{color}('./app/WebSockets.js');
}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists