我试图通过ng build --prod将我的角度代码编译到生产模式并且它成功但在浏览器中我得到错误:
ERROR p {__zone_symbol__error: Error: Uncaught (in promise): Error: NullInjectorError: No provider for t!
Run Code Online (Sandbox Code Playgroud)
错误:NullInjectorError:...,...}
当我只运行构建时,html工作正常.
我试过git hub上提到的几个链接:
https://github.com/angular/angular/issues/19219 https://github.com/angular/angular-cli/issues/6851
没有多大帮助.
附加我的Package.json文件内容:
{
"name": "xxx",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor",
"build": "ng build && node server.js",
"dev": "ng build -w & nodemon server.js --watch dist --watch server",
"production": "ng build --prod & node server.js …Run Code Online (Sandbox Code Playgroud)我使用Facebook发布GRAPH UI发布私人消息,链接到我在facebook的应用程序.之前它工作正常,但从最近两天开始,对话框开始抛出错误:
发生错误.请稍后再试.
API错误代码:100
API错误说明:无效参数
错误消息:"链接"无效.
发送消息我正在使用代码:
function sendMessage(id) {
FB.ui({
method : 'send',
name : 'My APP',
link : 'https://apps.facebook.com/MY_APP/',
to : id,
show_error : 'true',
description : 'my description'
});
}
Run Code Online (Sandbox Code Playgroud)
我已经用Google搜索了这一点,我得到的唯一相关信息是Facebook阻止了自己域名的链接以避免垃圾邮件.因为我改变了其他实时网站的链接工作.
我需要发送链接到我的应用程序,因为我必须提供这样的功能.