构建生产构建时出错

时间:2017-09-01 07:58:02

标签: angular firebase ionic-framework angularfire

执行以下操作时出现以下错误:ionic build --prod

  

错误:./ src / pages / home / home.ngfactory.js   找不到模块:错误:无法解决' ../../../ angularfire2 / database'在' [myPath] \ src \ pages \ home'   解决' ../../../ angularfire2 / database'在' [myPath] \ src \ pages \ home'     使用描述文件:[myPath] \ package.json(相对路径:./ src / pages / home)       Field'浏览器'不包含有效的别名配置     使用描述文件后:[myPath] \ package.json(相对路径:./ src / pages / home)       使用描述文件:[myPath] \ package.json(相对路径:./ angularfire2 / database)         没有延期           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database不存在         .js文件           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database.js不存在         .TS           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database.ts不存在         作为目录           [myPath] \ angularfire2 \ database不存在   [[mypath中] \ angularfire2 \数据库]   [[mypath中] \ angularfire2 \ database.js]   [[mypath中] \ angularfire2 \ database.ts]   [[mypath中] \ angularfire2 \数据库]    @ ./src/pages/home/home.ngfactory.js 41:0-59    @ ./src/app/app.module.ngfactory.js    @ ./src/app/main.ts,./scrc/app/app.module.ngfactory.js   找不到模块:错误:无法解析' ../../ angularfire2 / database'在' [myPath] \ src \ app'   解决' ../../ angularfire2 / database'在' [myPath] \ src \ app'     使用描述文件:[myPath] \ package.json(相对路径:./ src / app)       Field'浏览器'不包含有效的别名配置     使用描述文件后:[myPath] \ package.json(相对路径:./ src / app)       使用描述文件:[myPath] \ package.json(相对路径:./ angularfire2 / database)         没有延期           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database不存在         .js文件           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database.js不存在         .TS           Field'浏览器'不包含有效的别名配置           [myPath] \ angularfire2 \ database.ts不存在         作为目录           [myPath] \ angularfire2 \ database不存在   [[mypath中] \ angularfire2 \数据库]   [[mypath中] \ angularfire2 \ database.js]   [[mypath中] \ angularfire2 \ database.ts]   [[mypath中] \ angularfire2 \数据库]    @ ./src/app/app.module.ngfactory.js 29:0-56    @ ./src/app/main.ts

在本地或实验室进行测试时,该应用程序可以正常运行。

我是否缺少生产构建的依赖项?

1 个答案:

答案 0 :(得分:1)

您尝试回滚版本

  

AngularFire 4.0.0-rc.1似乎没有此问题,4.0.0-rc.2   确实。我现在回去了。