Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Loud-rejection/register

$
0
0

Hi,
I want to publish my app to android studio with “ionic cordova run android”, but this following error came:

(node:9072) Warning: To load an ES module, set “type”: “module” in the package.json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)
C:\Users\user\AppData\Roaming\npm\node_modules\cordova\bin\cordova:22
import ‘loud-rejection/register’;
^^^^^^

SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd platform add android --save exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

How can I fix this?
Maybe the command “–verbose” helps?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>