我想将sails.js(版本0.9.7)应用程序部署到Openshift但是在git push
我得到这个日志之后:
debug: Lowering sails...
DEBUG: Starting child process with 'node app.js'
.
.
.
info: Server lifted in `/var/lib/openshift/525ccaba5973caa65100002b/app-root/runtime/repo`
info: To see your app, visit http://127.7.215.1:8080
info: To shut down Sails, press <CTRL> + C at any time.
.
.
debug: --------------------------------------------------------
debug: :: Tue Oct 15 2013 03:03:56 GMT-0400 (EDT)
debug:
debug: Environment : development
debug: Host : 127.7.215.1
debug: Port : 8080
debug: --------------------------------------------------------
.
.
error: Server doesn't seem to …
Run Code Online (Sandbox Code Playgroud) 在这里有谁知道如何在Webpack下工作PrimeNG?
我们在angular2-webpack-starter上有项目,但PrimeNG只使用System.js加载器
当PrimeNG加载正常时,我明白了,但我可以通过PrimeUI库获得成功......比方说文件 primeng/components/togglebutton/togglebutton.ts
错误TS2503:找不到命名空间'PrimeUI'.
我甚至尝试过声明的魔法配方...togglebutton.ts
declare var PrimeUI:any;
Run Code Online (Sandbox Code Playgroud)
在我的 webpack.config
plugins: [
new webpack.ProvidePlugin({
PrimeUI: 'primeui',
})
.
.
],
Run Code Online (Sandbox Code Playgroud)
但如果我尝试类似的东西
import * as PrimeUI from 'primeui';
Run Code Online (Sandbox Code Playgroud)
错误TS2307:找不到模块'primeui'.
我只是提醒我做了,npm install primeui
并且primeui
存在于node_modules
所有依赖项中
我尝试使用system.js从Webpack迁移到JSPM.我们有简单的App组件.我正在阅读这篇文章Angular 2 Starter Setup with JSPM,SystemJS和Typescript in atom(第1部分)
import {Component} from 'angular2/core';
import {Bus} from './business.service';
@Component({
selector: 'app',
template: `
<p>Hello World</p>
`,
providers:[Bus]
})
export class App {
constructor(private bus : Bus) { }
}
Run Code Online (Sandbox Code Playgroud)
和简单(商业)服务 Http
import {Injectable} from 'angular2/core';
import {Http, Response, Headers, RequestOptions} from 'angular2/http';
import {Observable} from 'rxjs/Observable';
@Injectable()
export class Bus {
constructor(private http: Http){
}
}
Run Code Online (Sandbox Code Playgroud)
在Webpack工作正常但在这里使用systemjs我收到此错误
例外:没有Http的提供者!(App - > Bus - > Http)
我读过Angular2没有NameService的提供者,但是他们谈论的是Angular2 alpha而且提供者中没有提供者,我们使用beta @ 7
我也玩 …