cordova build android --release Error
patrykKlimczak opened this issue ยท 11 comments
Run: cordova build --release android
Error happened when webpack build: Error: Command failed: "/home/admin/app/node_modules/.bin/webpack" --env.release
/home/admin/app/node_modules/webpack-cli/bin/cli.js:74
throw err;
^
ReferenceError: path is not defined
Any idea?
Add: const path = require('path');
in config/webpack.release.js
Add this file and run, but I have the next problem:
ERROR in ./node_modules/framework7-icons/css/framework7-icons.css 1:0
Module parse failed: Unexpected character '@' (1:0)
Yes i got the same errors. Can't build release
I have the same thing
I found how to fix it) (and allready published app by this way) Since google needs app bunddle and not apk to release your app, you need to create keystone for your app then load your app to android studio, then create app bunndle (release) with keystone created and upload app.abb to google console for review! Thats all.))
Are you guys using the last 2.3.9 template version? Because everything worked as expected here, if not I would suggest starting a new one from scratch to see that working well.
I used exactly this build -> cordova build android --release
how to update template version in dev project?
Are you guys using the last 2.3.9 template version? Because everything worked as expected here, if not I would suggest starting a new one from scratch to see that working well.
I used exactly this build ->
cordova build android --release
Just created clean project from template,added platform, run build = the same error!
hey @khudia, I've actually found the problem please follow this webpack release file :
Good, work, thanks!