我正在按照https://github.com/stanleyeosakul/angular-universal-firebase的一些说明让我的网站托管在 firebase 上。当我运行 firebase deploy 时,一切都很好,直到最后一步。这就是我收到以下错误的地方:
Function load error: Code in file index.js can't be loaded.
Is there a syntax error in your code?
Detailed stack trace: TypeError: _angular_core.OpaqueToken is not a
constructor
at /user_code/node_modules/@angular/flex-layout/bundles/flex-
layout.umd.js:615:19
at value (/user_code/node_modules/@angular/flex-layout/bundles/flex-
layout.umd.js:2:68)
at Object.<anonymous> (/user_code/node_modules/@angular/flex-
layout/bundles/flex-layout.umd.js:5:2)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
谁能帮我解决这个错误?现在甚至可以在 Firebase 托管上使用 flex-layout 吗?我整天都在尝试它,这令人沮丧。
谢谢!