1
ionic2 beta 11からrc0に更新されました。 すべてはRC0で新しいプロジェクトを作成した後、私は次のエラーを得た、ベータ11に取り組んでいた:iosデバイス/シミュレータmain.jsでionic2 rc0ビルドエラー
[12:35:30] bundle prod started ...
[12:35:30] Error: Could not resolve entry (.tmp/app/main.prod.js)
at /Users/MAC/myapp/node_modules/rollup/dist/rollup.js:8602:28
at process._tickCallback (internal/process/next_tick.js:103:7)
[12:35:30] sass started ...
[12:35:32] sass finished in 2.28 s
[12:35:32] minify started ...
[12:35:32] cleancss started ...
[12:35:32] uglifyjs started ...
[12:35:32] Error: ENOENT: no such file or directory, open '/Users/MAC/myapp/www/build/main.js'
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at addFile (/Users/MAC/myapp/node_modules/uglify-js/tools/node.js:68:22)
at /Users/MAC/myapp/node_modules/uglify-js/tools/node.js:79:17
at Array.forEach (native)
at Object.exports.minify (/Users/MAC/myapp/node_modules/uglify-js/tools/node.js:77:26)
at runUglifyInternal (/Users/MAC/myapp/node_modules/@ionic/app-scripts/dist/uglifyjs.js:34:19)
at runUglify (/Users/MAC/myapp/node_modules/@ionic/app-scripts/dist/uglifyjs.js:23:28)
at Object.uglifyjs (/Users/MAC/myapp/node_modules/@ionic/app-scripts/dist/uglifyjs.js:9:12)
が、私は問題が作成されていないmain.jsファイルがあることに気づきました。 main.prod.jsの
Failed to load resource: The requested URL was not found on this server.
file:///var/containers/Bundle/Application/12824002-C5CC-42CD-8173-4A472DC68C9E/myapp.app/www/build/main.js
内容は以下のとおりです:
import { platformBrowser } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppModuleNgFactory } from './app.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
私はでそれを解決し、あなたに