Error building app with appflow

how much space i have for appflow?
my project volume with node_module folder takes about 500mb on my localdisk
i got time out error while pushing is this because of limitation on my appflow?
should i have to push node_module folder?

also when i push iit except node_module folder i got this error:

[19:30:43]: fastlane finished with errors
/usr/local/bundle/bin/fastlane: [!] Exit status of command 'npm run build' was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

> qrReader@0.0.1 build /builds/project-0
> ng build

Generating ES5 bundles for differential loading...
An unhandled exception occurred: [BABEL] /builds/project-0/www/0-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/builds/project-0/node_modules/@babel/preset-env/lib/index.js")
See "/tmp/ng-MJY2Zl/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! qrReader@0.0.1 build: `ng build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the qrReader@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-25T19_30_42_975Z-debug.log

support team said me to do this:

Try this,

On package.json add;

  "resolutions": {    "@babel/preset-env": "^7.8.7",    "@babel/compat-data": "~7.8.0"  }

run npx npm-force-resolutions
then run npm install or yarn
then run npm build or yarn build

Let us know if this helps.

i added to package.json but i donā€™t know how to run those command on appflow server?

Have you reached out to the official support channel linked under ā€œcustomer supportā€?

yes but
i made a request here : (https://ionic.zendesk.com/hc/en-us/requests/new)
but still have error
i have a question should i have to push the node_modules folder?

No, do not put node-module.
Please wait until support gets back to you.

@mhartington
tnx
i have a another question about another my project :
i did not push node_module folder because it has high volume
but the thing is i use a module -> https://github.com/fingerpich/jalali-angular-datepicker
which i installed it from npm by this command

npm install ng2-jalali-date-picker --save

now it shows error

how can i fix it?

I am having the same issue using AppFlow.

If I use the workaround then npm run build works locally.
But I still get the error on all build on appflow.

If they get back to you with a resolution, could you reply here please?

1 Like

@abait sure
Mr @mhartington
Iā€™d be grateful if you share our problem with the technical department and help us to solve this problem as soon as possible

Please get in touch with paid support.
They will handle this.

what do you mean paid support? i have LAUNCH plan didnā€™t it have support?

What version of @angular-devkit/build-angular are you using? I had this issue with 0.803.25 and after downgrading to ā€œ~0.803.23 solved it for me.

@Vigors
it runs correctly on my local
appflow can not run it

It ran fine locally with me until I ran: ionic build --prod, that failed with the same error as appflow

@itosoft you did not mention that originally.

Can you please provide your package.json

yes i guess that i forgot to tell you it works correctly on my local but got errors on app flow
there it is ->


error is >ERR! code ELIFECYCLE

lets clearify errors
i have 2 problem 2 errors on appflow
remmember that both of them works fine my local these are error on appflow server

problem1:
error:ERR! code ELIFECYCLE

[19:30:43]: fastlane finished with errors
/usr/local/bundle/bin/fastlane: [!] Exit status of command 'npm run build' was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

> qrReader@0.0.1 build /builds/project-0
> ng build

Generating ES5 bundles for differential loading...
An unhandled exception occurred: [BABEL] /builds/project-0/www/0-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/builds/project-0/node_modules/@babel/preset-env/lib/index.js")
See "/tmp/ng-MJY2Zl/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! qrReader@0.0.1 build: `ng build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the qrReader@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-25T19_30_42_975Z-debug.log

here is the package.json :https://github.com/itosoftco/qrscanner/blob/25f0eda4b9c58264b2a0f38495dc8ffeed395385/package.json


problem 2

i start new topic here about problem2 and if like answer there:

The first issue regarding Babel is an angular CLI issue.

Regarding the second issue, I cannot replicate that given your project you posted here.

Please provide a sample project for that and verify that the package is listed in your package.json.

1 Like

allright i will check

@itosoft @mhartington

Regarding the Babel issue. I had a reply back from support, and the following worked for me:

Try changing the browser list file in the root of the project to the following;

# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# You can see what browsers were selected by your queries by running:
#   npx browserslist
last 2 Chrome versions
last 2 Safari versions
last 2 Firefox versions

This now builds locally and and on AppFlow

2 Likes

I have the same issue I created a paid-support ticket and could not hear anything from yet. I modified browserlist file but didnā€™t help.

Is there any other solution for this ?