腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5791)
视频
沙龙
1
回答
为什么
在
Typescript
中
双重
导入
NPM
包
(
Firebase
函数
)
typescript
、
firebase
、
npm
、
google-cloud-firestore
在
Firebase
documentation
中
,我遇到了这样的情况: import * as functions from '
firebase
-functions';import '
firebase
-functions'; admin.initializeApp();
为什么
第二次引入
firebase
-func
浏览 10
提问于2019-02-07
得票数 2
回答已采纳
1
回答
导入
‘命名空间/模块’和
导入
‘@命名空间/模块’与
TypeScript
和Yarn之间的区别?
typescript
、
firebase
、
npm
、
yarnpkg
、
lerna
在上,我们想知道道格,来自Google的支持,是否不同的方式
导入
包
可能是一个错误的来源。文档告诉我们这样做,使用类型记录和国家预防机制:import "
firebase
/auth"; import "
firebase
它要求我
在
导入
开始时使用名称空间/模块语法添加一个@,否则它会抱怨不适合u
浏览 1
提问于2020-08-26
得票数 0
回答已采纳
1
回答
为什么
我可以
在
没有安装
包
的情况下将“
Firebase
/firestore”
导入
到我的
Firebase
功能
中
?
typescript
、
firebase
、
google-cloud-functions
我正在用
TypeScript
编写一些
Firebase
函数
,我将import { Timestamp } from '
firebase
/firestore';添加到文件的顶部,因为我需要Timestamp我没有安装
firebase
软件
包
,但令我惊讶的是,它工作得很好。我可以
在
我的Timestamp接口中使用
TypeScript
,而不会出错。:start --only functions", "sh
浏览 5
提问于2022-06-22
得票数 0
回答已采纳
1
回答
不正确恢复路径的依赖项JSPM映射
systemjs
、
jspm
、
angularfire2
-beta.2", "
firebase
": "
npm
:
firebase
浏览 1
提问于2016-06-26
得票数 0
1
回答
如何将
typescript
编译成删除了类型注释和接口
导入
的原始ts文件
typescript
、
google-cloud-functions
我们目前遇到了一个使用
Firebase
函数
(使用
typescript
代码库)的问题,
在
我们的monorepo中有一个单独的库,它也
在
typescript
中
,但是这个库通过符号链接(yarn工作空间)
导入
类型和接口我们正在尝试使用这个库来拥有我们所有的常用工具
函数
等,然后
在
每次部署之前将它的一个版本复制到云
函数
的“
函数
”目录
中
,这样我们就不必每次都手动将monore
浏览 0
提问于2019-07-08
得票数 0
1
回答
类型记录编译器如何发现带有类型的
npm
包
?
typescript
、
npm
、
typescript-definitions
默认情况下: 如果指定了typeRoots,则只包含typeRoots下的
包
。 许多包在单独的@types/<package-name>
包
中提
浏览 3
提问于2019-03-04
得票数 0
回答已采纳
3
回答
在
Firebase
客户端应用程序
中
实现可调用云功能
firebase
、
google-cloud-functions
我最近发现了,它允许我从客户端调用类似HTTPS触发器的
函数
(并支持auth() )。import
firebase
from '
firebase
'; import '
firebase
/firest
浏览 2
提问于2018-03-26
得票数 3
回答已采纳
2
回答
在
试图
导入
自定义
包
和运行模拟器时获取“错误:找不到模块<module>”
typescript
、
firebase
、
google-cloud-functions
、
tsconfig
我已经生成了一些代码,我想在我的防火墙
函数
中使用。这是我从github提取的一个私人
包
,所以
在
我的package.json
中
"@company/package": "1.0.0"}⚠ Error: Cannot find module '@tec
浏览 4
提问于2021-09-05
得票数 4
回答已采纳
2
回答
未找到部署云
函数
中
的错误.json
json
、
typescript
、
google-cloud-functions
当我试图
导入
.json凭据文件时,我无法部署我的
函数
。 "
浏览 0
提问于2018-09-06
得票数 3
回答已采纳
3
回答
npm
错误-验证package.json是否具有有效的"main“条目
node.js
Documents/nodesendeth/node_modules/cctx/package.json',} "dependencies": { &q
浏览 0
提问于2020-11-10
得票数 8
1
回答
如何使用
npm
包
的内置
typescript
定义(特别是
firebase
)
typescript
、
firebase
、
typescript-typings
、
firebaseui
我正在为
firebase
编写一个
typescript
的web应用。但是我不能让
导入
为firebaseui和
firebase
本身工作。这是我的一个普遍问题,我从来没有能够
导入
没有@types
包
的库附带的类型定义。我的设置似乎有问题,但我找不到转错弯的地方。我刚刚通过
npm
安装了" firebaseui“,并尝试像在
firebase
文档中一样使用它,但是我无法正确
导入
firebaseui和
firebase
.au
浏览 25
提问于2021-10-26
得票数 0
回答已采纳
1
回答
角火基InitializeApp
angular
、
firebase
更新SystemJS,以便应用程序可以加载新的防火墙
包
,即systemjs.config.js看起来如下: (
函数
(全局){ System.config({ paths:{/ paths充当别名‘
npm
:’):‘node_node/’},// map告诉系统加载程序在哪里查找事物映射:{ //我们的应用程序
在
应用文件夹应用程序
中
:' app ',//角捆绑
包
‘@角/核心’:‘<e
浏览 1
提问于2016-11-19
得票数 0
5
回答
在
Windows上提供
Firebase
函数
不能进行热重新加载
firebase
、
google-cloud-functions
、
watchman
、
hot-reload
使用命令
在
本地提供
Firebase
功能应该可以启用热重新加载,但这似乎
在
windows上不起作用,即使安装了。除了
在
每次代码更改后运行
npm
build之外,还有更好的解决方案吗?
浏览 6
提问于2018-11-13
得票数 10
1
回答
在
TypeScript
中使用Node-Fetch与CloudFunctions
node.js
、
typescript
、
google-cloud-functions
、
node-fetch
所以我
在
TypeScript
中使用
Firebase
的云
函数
import * as fetch from "node-fetch";当我尝试像这样使用我想知道是否需要在运行之后添加一个依赖项:因为
在
我的package.json "name": "functions", "
浏览 26
提问于2022-08-28
得票数 0
1
回答
为什么
在
没有完全部署的情况下,
Firebase
函数
模拟器不能更新功能?
angular
、
firebase
、
google-cloud-functions
、
firebase-cli
我
在
Windows10机器上使用了角5
TypeScript
,VisualStudio IDE。我正在使用
Firebase
托管、Firestore和
Firebase
函数
。我正在
TypeScript
(index.ts)文件
中
的“functions”文件夹
中
编写
函数
。当遵循本地测试
Firebase
函数
()的说明时。如链接中所述,我能够通过"
firebase
服务“和funct
浏览 3
提问于2018-05-06
得票数 1
回答已采纳
2
回答
解析错误:"parserOptions.project“已设置为@parserOptions.project/解析器。该文件与项目配置不匹配:.eslintrc.js
reactjs
、
typescript
、
firebase
、
google-cloud-functions
我运行了
firebase
init,选择了类型记录选项,启用了es lint和启用了
函数
。
函数
/
包
件。", "serve": "
npm
run build &&
firebas
浏览 5
提问于2021-06-07
得票数 1
2
回答
无法
在
模块外使用
导入
语句,
TypeScript
NodeJS
Firebase
函数
项目
node.js
、
typescript
、
google-cloud-functions
最近,我使用
TypeScript
设置了一个
Firebase
函数
项目。据我所知,我正在使用与以前相同的设置。我能想到的唯一不同之处是,我使用
npm
install -g
firebase
-tools@latest更新了我的防火墙工具。", "serve": "
npm
run build &&
firebase
emulators:
浏览 12
提问于2022-04-01
得票数 3
回答已采纳
1
回答
使用ES模块系统使用
TypeScript
部署
Firebase
函数
的问题
node.js
、
typescript
、
firebase
、
google-cloud-functions
我
在
部署从类型记录编译的
Firebase
函数
时遇到了问题,使用ES模块系统。/lib/index.js
中
包含
导入
语句中的.js扩展。
npm
库,它使用从
TypeScript
编译的ES模块,而不包含.js扩展(它没有通用版本)。由于我将节点16运行时用于我所理解的
函数
,所以我应该能够运行ES2020目标,ES模块,但是
在
Firebase
函数
运行时中是否有一种方法可以设置--exper
浏览 7
提问于2022-10-04
得票数 1
2
回答
项目中未定义的导航器
javascript
、
reactjs
、
typescript
、
firebase
、
webpack
webpack-dev-server/issues/60#issuecomment-103411179 net: 'empty'}; apiKey: '**my key here**',
firebase
浏览 0
提问于2018-06-24
得票数 0
回答已采纳
1
回答
Firebase
部署错误:读取
函数
/Package.json时出错
firebase
、
google-cloud-firestore
、
firebase-tools
最近,当我尝试使用命令
firebase
deploy --only functions部署防火墙云
函数
时,会出现此错误。run build &&
firebase
emulators:start --only functions", "start": "
npm</e
浏览 2
提问于2020-06-04
得票数 4
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
JavaScript开发人员更喜欢Deno的五大原因
2024该学会发布npm私有包啦
TypeScript 2.9发布,更新了对ES.Next的支持
Deno 1.42:使用 JSR 更好地进行依赖管理
TypeScript 4.5 发布,带来 Promise 功能改进
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券