GitHub user breautek edited a comment on the discussion: Support ES6
Also note that... `package.json` module key refers to the node module, but your app code doesn't run in a node runtime, it runs in the browser. But it will cause cordova tools to be ran in node as if they are ES modules which they are not. Which would be why you see > However, when I type "type: "module" in package.json then I get the error > Could not load API for android project C:\n[...]\nCordova API.js. GitHub link: https://github.com/apache/cordova/discussions/434#discussioncomment-7103819 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
