- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
因此,我最近将 angularfire2 更新到了最新最好的版本,但遇到了一些问题。我按照 angularfire2 开发人员指南安装了项目,但仍然出现以下错误:
[18:57:50] ionic-app-script task: "build" [18:57:50] Error: ./node_modules/firebase/firestore/platform_browser/webchannel_connection.js Module not found: Error:
Can't resolve '@firebase/webchannel-wrapper' in
'/Users/usr/Documents/project/node_modules/firebase/firestore/platform_browser' resolve
'@firebase/webchannel-wrapper' in
'/Users/usr/Documents/project/node_modules/firebase/firestore/platform_browser' Parsed request is
a module using description file: /Users/usr/Documents/project/node_modules/firebase/package.json
(relative path: ./firestore/platform_browser) Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/usr/Documents/project/node_modules/firebase/package.json
(relative path: ./firestore/platform_browser) resolve as module looking for modules in
/Users/usr/Documents/project/node_modules using description file:
/Users/usr/Documents/project/package.json (relative path: ./node_modules) Field 'browser' doesn't
contain a valid alias configuration after using description file:
/Users/usr/Documents/project/package.json (relative path: ./node_modules) using description file:
/Users/usr/Documents/project/package.json (relative path:
./node_modules/@firebase/webchannel-wrapper) no extension Field 'browser' doesn't contain a valid alias
configuration /Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper doesn't exist
.ts Field 'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.ts doesn't exist .js Field
'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.js doesn't exist .json
Field 'browser' doesn't contain a valid alias configuration
/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.json doesn't exist as
directory /Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper doesn't exist
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.ts]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.js]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper.json]
[/Users/usr/Documents/project/node_modules/@firebase/webchannel-wrapper] @
./node_modules/firebase/firestore/platform_browser/webchannel_connection.js 12:25-64 @
./node_modules/firebase/firestore/platform_browser/browser_platform.js @
./node_modules/firebase/firestore/platform_browser/browser_init.js @ ./node_modules/firebase/firestore.js @
./node_modules/angularfire2/firestore/collection/changes.js @
./node_modules/angularfire2/firestore/public_api.js @ ./node_modules/angularfire2/firestore/index.js @
./src/app/app.component.ts @ ./src/app/app.module.ts @ ./src/app/main.ts
package.json
{
"name": "stockup",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.4.4",
"@angular/compiler": "4.4.4",
"@angular/compiler-cli": "4.4.4",
"@angular/core": "4.4.4",
"@angular/forms": "4.4.4",
"@angular/http": "4.4.4",
"@angular/platform-browser": "4.4.4",
"@angular/platform-browser-dynamic": "4.4.4",
"@angular/tsc-wrapped": "4.4.4",
"@ionic-native/barcode-scanner": "4.3.0",
"@ionic-native/core": "3.14.0",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"@types/node": "8.0.19",
"angularfire2": "^5.0.0-rc.0",
"cordova-ios": "^4.4.0",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.1",
"firebase": "^4.5.0",
"install": "^0.10.1",
"ionic-angular": "^3.7.1",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "^3.0.0",
"npm": "^5.4.2",
"phonegap-plugin-barcodescanner": "^6.0.8",
"promise-polyfill": "^6.0.2",
"rxjs": "5.4.3",
"sudo": "^1.0.3",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "^3.0.0",
"typescript": "^2.5.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"phonegap-plugin-barcodescanner": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {}
},
"platforms": [
"ios"
]
}
}
我一直在努力解决这个问题,希望有人能提供帮助。相关环境信息如下:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.0.0
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.7.1
System:
Node : v6.11.3
npm : 5.4.2
OS : OS X El Capitan
Xcode : Xcode 8.2.1 Build version 8C1002
如果我可以提供任何其他信息来帮助您,请告诉我。提前致谢。
最佳答案
错误:
./node_modules/firebase/firestore/platform_browser/webchannel_connection.js Module not found: Error: Can't resolve '@firebase/webchannel-wrapper' in
解决方案:
您需要安装@firebase/webchannel-wrapper
模块。
npm install @firebase/webchannel-wrapper --save-exact
关于angular - 错误 : Can't resolve '@firebase/webchannel-wrapper' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46556054/
我是 CAN 协议(protocol)的新手,正在阅读 Robert Bosch 的 CAN 规范 ver2.0 B 部分。我无法理解第 63 页上的以下几行 ”注意:启动/唤醒:如果在启动期间只有一
我用 C 写了一些代码来读取 CAN 总线数据。当我读取 11 位 CAN ID 时一切正常。一旦我尝试读取 29 位 ID,它就会错误地显示 ID。 示例: 接收29位ID的消息: 0x01F0A0
如果这看起来与另一个问题相似或者看起来已经得到回答,我提前道歉。我觉得它非常详细,足以证明自己的问题。 我正在尝试寻找一个虚拟的 CAN 总线模拟器(或一些可以轻松制作模拟器的方法),它只会生成 CA
我的问题涉及 GNU 的品牌。 如果您有一系列命令可用作多个目标的配方,则 canned recipe派上用场了。我可能看起来像这样: define run-foo # Here comes a #
您好,我是一名学习canopen的学生。Canopen中的COB-ID和CAN标识符有什么关系?我在CIA主页上看到COB-ID不是CAN ID,但我不明白。 例如,如果 PDO 通过 CAN 总线传
我知道一个显性确认位是由另一个节点传输的消息的接收器发送的。 我无法理解的是,接收方是在接收到整个消息后发送单个显性位,还是接收者发送相同的消息,其中 ACK 位字段为显性? 或者是接收器在发送器传输
我是 CAN 协议(protocol)的新手,我正在尝试通过 Linux 的 SocketCAN 使用它。然而,我对可用的 2 种不同的 CAN 套接字(RAW 和广播管理器 (BCM))感到困惑。
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
我正在尝试制作一个在 Windows 下运行并与 ELM327 设备通信的软件。我创建了第一个版本,然后我进入了我的 SMART ForTwo (SMART 451) 车辆,我设法连接了仪表盘(发送
我知道在 CAN Controller 中,如果错误计数达到某个阈值(比如 255),就会发生总线关闭,这意味着特定的 CAN 节点将从 CAN 网络中关闭。所以根本不会有任何交流。但是,如果上述情况
我正在使用 ELM327,我希望能够设置要发送的 CAN 消息的 header 和数据部分。我看到有一个代码用于设置消息的标题 SH xxyyzz 但是我很难找出如何设置数据部分并控制何时发送消息。
我想做的是: 将数据插入具有两列的表中,并在同一 PHP 页面中显示更新的值。我能够获取数据并显示它,但无法插入任何数据。请指导我。 文件名为 mypage.php 到目前为止我的代码:
(这个问题是关于 Android 11 的) 我想将崩溃日志打印到其他应用程序可以读取的文件中(具体来说,我希望能够导航到该文件并使用"file"应用程序查看数据)。 我看过很多关于这个问题的答案,但
这会产生“ fatal error :无法解开Optional.None”,我似乎不明白为什么 var motionManager = CMMotionManager() motionManager.
在 Java 中,我经常遇到带有后缀 -able 的接口(interface),例如可序列化、可迭代等。这表明实现这些接口(interface)的对象具有可以对其执行某些操作的特性,例如该对象可以被序
我正在阅读 CanJS API 文档并遇到 can.Construct.extend http://canjs.com/docs/can.Construct.extend.html .我知道 can.
我正在使用 C 语言在 STM32F1xx 上进行开发,直到现在我都在尝试使用“CANopenNode-master”实现 CANopen 堆栈,并且我正在使用 2 个中断。 第一个是用于处理 SYN
我一直在使用 SocketCAN,尤其是 Virtual CAN vcan。但是,到目前为止,我从未使用过 CAN FD(灵活数据速率)。 好吧,我今天早上用 can-utils 试了一下: cans
我正在运行一个带有两个 CAN channel 的程序(使用 TowerTech CAN Cape TT3201)。 两个 channel 是 can0 (500k) 和 can1 (125k)。 c
存储由序列字符组成的字符串的 %s 格式说明符可以存储整数序列吗?如果是的话..你能解释一下吗? 最佳答案 无论如何,数字都是用字符表示的,所以是的,您可以使用 "%s" 说明符读取数字并将其存储在
我是一名优秀的程序员,十分优秀!