Issue with ionic cordova build android --prod --release

#1

hello everybody

about a week, I’m stuck with an issue of build a release app for production … when i try to build it , the command line doesn’t appear no error and stop at :

C:\mobile app\myapp>ionic cordova build android --prod --release
Running app-scripts build: --prod --platform android --target cordova
[02:20:24] build prod started …
[02:20:24] clean started …
[02:20:24] clean finished in 12 ms
[02:20:24] copy started …
[02:20:25] deeplinks started …
[02:20:25] deeplinks finished in 73 ms
[02:20:25] ngc started …
[02:20:34] ngc finished in 9.40 s
[02:20:34] preprocess started …
[02:20:34] preprocess finished in less than 1 ms
[02:20:34] webpack started …
[02:20:34] copy finished in 10.01 s

… but when a launch ngc command line i get this issue :

c:\mobile app\myapp\node_modules.bin>ngc
error TS5058: The specified path does not exist: ‘tsconfig.json’.

here is my tsconfig.json :

{
“compilerOptions”: {
“allowSyntheticDefaultImports”: true,
“declaration”: false,
“emitDecoratorMetadata”: true,
“experimentalDecorators”: true,
“lib”: [
“dom”,
“es2015”
],
“module”: “es2015”,
“moduleResolution”: “node”,
“sourceMap”: true,
“target”: “es5”
},
“include”: [
“src//*.ts"
],
“exclude”: [
“node_modules”,
"src/
/.spec.ts",
"src/**/tests/
.ts”
],
“compileOnSave”: false,
“atom”: {
“rewriteTsconfig”: false
}
}

please help me

#2

hi

after 1h of work … i found an alternative solution

i just run :

cordova build android –prod –release

and voila i build my app for production