我试图部署一个角6应用程序的heroku第一次。我不知道到底出了什么问题。
我已经创建了一个在本地主机上运行良好的角应用程序,但是当我部署到heroku时,它会给出“应用程序错误”。
应用程序网址:
这是我的server.js文件:
//Install express server
const express = require('express');
const path = require('path');
const app = express();
// Serve only the static files form the dist direct
我正在实现角通用服务器端呈现到一个现有的角7应用程序。我还试图让它与Firebase一起工作,但是在firebase控制台的函数日志中,我得到了以下错误:
TypeError: readFile$(...).mergeMap is not a function
at /user_code/node_modules/angular-universal-express-firebase/node_modules/angular-universal-express/index.js:36:14
at Layer.handle [as handle_request] (/user_c
现在有了,我想把我的VB应用移植到Windows RT上。如何为ARM编译我的VB.NET WinForms应用程序?有没有可能在VS Express中实现?我有"VS Express for Windows 8“和"VS Express for Desktop”。我的应用程序没有使用定制库或控件,所以只要能为ARM编译就不会有问题。是吗?
我试图在带有类型记录的Angular2中定义一个具有登录功能的简单应用程序。我已经定义了我的路由器,但是当我试图在浏览器中访问url时,会遇到一个错误。这是一个错误:
Cannot GET /login
我使用的网址是:
http://localhost:3012/login
似乎路由器没有正确地路由URL来纠正组件,我也不知道为什么。下面是我的home.component.ts,它实例化应用程序和路由器:
import {Component} from 'angular2/core';
import {ROUTER_DIRECTIVES, RouteConfig} from
我试图在这里学习这个示例,,但是在执行tsc -p时,我会得到一个错误。有什么需要我进口的吗?
错误:
node_modules/@angular/common/src/location/location.d.ts(1,10): error TS2305: Module '"...functions/node_modules/rxjs/Rx"' has no exported member 'SubscriptionLike'.
TS文件
import "zone.js/dist/zone-node";
import * as f
我试图在我的应用程序中使用@转角/材料,它正在成功编译,但是我得到了以下错误:
webpack: Compiled successfully.
ERROR in node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts(136,20): error TS2315: Type 'ElementRef' is not generic.
node_modules/@angular/material/button-toggle/typings/button-toggle.d.ts(154,104):
我在我的Angular应用程序中使用了ngx-extended- PDF -viewer来显示PDF目录(PDF目录位于本地文件夹中)。它在本地运行得很好,但当我尝试预渲染应用程序时,我得到了这个错误:
以下是日志文件错误:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\
我正在构建angular 7应用程序,并使用angular universal进行服务器端渲染,在本地运行一切正常,但当我尝试在firebase上部署应用程序时,firebase函数日志显示以下错误:
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"Build failed: exit status 254\nnpm ERR! addLocal Could not install
我的Heroku应用程序启动后运行良好,直到我尝试执行任何与其数据库交互的操作,这时我得到一个错误消息"503- service unavailable“。
我已经在我的资源选项卡中安装了mLab附加组件,并在我的设置选项卡的配置变量部分添加了正确的MONGODB_URI连接字符串,尽管我不确定这两个操作是否多余。
当我使用本地主机启动应用程序时,它工作得很好,尽管我注意到它仍然使用我的本地数据库,而不是mLab数据库。
这是我的server.js文件:
var express = require('express');
var app = express();
var
我想在一个由ES6和Express.js服务的应用程序中使用带有Angular2的Node.js模块。但是,当我试图在浏览器中加载Angular2 2/ES6应用程序时,FireFox控制台中会打印以下内容:
The stylesheet http://localhost:8080/boot.css was not loaded because its MIME type, "text/html", is not "text/css". localhost:8080
SyntaxError: import declarations may only appear
从两天前开始,我就试图在apollo应用程序上安装Angular。但我知道这个错误:
The package apollo-angular@3.0.1 will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@0.0.0
npm ERR! Found: @angular/core@14.0.6