Невозможно создать производство.

86
9

Я не могу использовать Ubuntu с помощью опции --prod и создать следующую ошибку, есть ли способ исправить эту проблему?

> ionic cordova build android --prod --release 

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)

спросил(а) 2018-03-02T09:16:00+03:00 2 года, 4 месяца назад
0
Ваш ответ
Введите минимум 50 символов
Чтобы , пожалуйста,
Выберите тему жалобы:

Другая проблема