我嘗試了下面的命令嘗試添加離子監測功能來診斷我的應用程序中使用離子視圖的問題。無法設置離子cordova構建離子監測--prod
$ ionic monitoring syncmaps
git rev-parse HEAD √ Running command - done! [INFO] No sourcemaps found, doing build...
? Do full prod build? (Y/n) y ?
Do full prod build? Yes [INFO] Running app-scripts build: --prod
[22:16:31] build prod started ... [22:16:31] clean started ... [22:16:31] clean finished in 1 ms [22:16:31] copy started ... [22:16:31] ngc started ... [22:16:37] ngc finished in 6.08 s [22:16:37] preprocess started ... [22:16:37] deeplinks started ... [22:16:38] deeplinks finished in 441 ms [22:16:38] optimization started ... [22:16:38] copy finished in 6.63 s Error: ./src/pages/admin/admin.ngfactory.js Module not found: Error: Can't resolve '../../../angularfire2/auth' in >'C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin' resolve '../../../angularfire2/auth' in 'C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin' using description file: C:\Users\Gavin\Desktop\Web Development\app\package.json (relative path: ./src/pages/admin) Field 'browser' doesn't contain a valid alias configuration
這個錯誤持續下去的頁面很長一段時間,我得到了同樣的錯誤,如果我鍵入 離子科爾多瓦構建--prod