Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229600

Unable to create production build

$
0
0

i am unable to build on Ubuntu using --prod option,and create the following error

Running app-scripts build: --prod --platform android --target cordova
[11:28:59] build prod started …
[11:28:59] clean started …
[11:28:59] clean finished in 25 ms
[11:28:59] copy started …
[11:29:00] deeplinks started …
[11:29:00] deeplinks finished in 284 ms
[11:29:00] ngc started …
[11:29:18] ngc finished in 18.18 s
[11:29:18] preprocess started …
[11:29:18] preprocess finished in 1 ms
[11:29:18] webpack started …
[11:29:19] copy finished in 19.84 s
Error: ./src/app/main.ts
Module not found: Error: Can’t resolve ‘./app.module.ngfactory’ in '/home/user/Desktop/myApp/src/app’
resolve ‘./app.module.ngfactory’ in '/home/user/Desktop/myApp/src/app’
using description file: /home/user/Desktop/myApp/package.json (relative path: ./src/app)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: /home/user/Desktop/myApp/package.json (relative path: ./src/app)
using description file: /home/user/Desktop/myApp/package.json (relative path: ./src/app/app.module.ngfactory)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
/home/user/Desktop/myApp/src/app/app.module.ngfactory doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
/home/user/Desktop/myApp/src/app/app.module.ngfactory.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
/home/user/Desktop/myApp/src/app/app.module.ngfactory.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
/home/user/Desktop/myApp/src/app/app.module.ngfactory.json doesn’t exist
as directory
/home/user/Desktop/myApp/src/app/app.module.ngfactory doesn’t exist
[/home/user/Desktop/myApp/src/app/app.module.ngfactory]
[/home/user/Desktop/myApp/src/app/app.module.ngfactory.ts]
[/home/user/Desktop/myApp/src/app/app.module.ngfactory.js]
[/home/user/Desktop/myApp/src/app/app.module.ngfactory.json]
[/home/user/Desktop/myApp/src/app/app.module.ngfactory]
@ ./src/app/main.ts 2:0-60
at new BuildError (/home/user/Desktop/myApp/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at callback (/home/user/Desktop/myApp/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
at emitRecords.err (/home/user/Desktop/myApp/node_modules/webpack/lib/Compiler.js:265:13)
at Compiler.emitRecords (/home/user/Desktop/myApp/node_modules/webpack/lib/Compiler.js:371:38)
at emitAssets.err (/home/user/Desktop/myApp/node_modules/webpack/lib/Compiler.js:258:10)
at applyPluginsAsyncSeries1.err (/home/user/Desktop/myApp/node_modules/webpack/lib/Compiler.js:364:12)
at next (/home/user/Desktop/myApp/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/home/user/Desktop/myApp/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/home/user/Desktop/myApp/node_modules/tapable/lib/Tapable.js:222:13)
at Compiler.afterEmit (/home/user/Desktop/myApp/node_modules/webpack/lib/Compiler.js:361:9)


Viewing all articles
Browse latest Browse all 229600

Trending Articles