【发布时间】:2017-03-28 02:48:43
【问题描述】:
我正在尝试实现 Firebase 对 Google、Twitter 等的授权。
按照this 指导,显示我调用以下命令
npm install angularfire2 firebase --save
npm install @types/firebase`
并将其添加到tsconfig.json
"typeRoots": [
"../node_modules/@types"
],
"types": [
"jasmine",
"firebase",
"node"
]
现在我遇到的问题是,当尝试从 angularfire2 模块导入类/模块时,我的浏览器在 localhost:3000/angularfire2 上返回 404,而所有其他 node_modules 都从 localhost:3000/node_modules/... 成功检索我如何确保我的应用会查看 node_modules 的这个特定电话吗?
(按照上面提到的指南中的每一条说明进行操作——所有代码都完全相同,如果需要,我可以从我自己的代码或文件树中提供它(如果需要)。
【问题讨论】:
-
你用webpack还是systemjs?
-
@smnbbrv systemjs
标签: angular firebase firebase-authentication node-modules