-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular cli - Rc1 - not able to build #8
Comments
Please show your package.json and console output here. |
|
Console Output:
|
Did you add Ng2PopupModule into your main.ts? Could you add your main.ts? |
It is working if i add entry to main.ts |
import { enableProdMode } from '@angular/core'; import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); |
Still getting error. Some how it worked yesterday and started getting same error again. |
Please take look at your
|
I have added in app.module. |
If you edit file:
|
This is not a right solution as we need to edit every time we do clean build. Anyway I cloned the source code and changed as per latest angular code and it is working for me . If you want I can share my code so that you can push to npm
…Sent from my iPhone
On Mar 15, 2017, at 8:03 AM, neverlose-lv ***@***.***> wrote:
If you edit file:
node_modules/ng2-popup/dist/ng2-popup.module.d.ts
then it works good
import { NgModule } from ***@***.***/core';
import { Ng2PopupComponent } from "./ng2-popup.component";
import { Ng2MessagePopupComponent } from "./ng2-message-popup.component";
@NgModule({
declarations: [Ng2PopupComponent, Ng2MessagePopupComponent],
exports: [Ng2PopupComponent, Ng2MessagePopupComponent]
})
export declare class Ng2PopupModule {}
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@vjangari please make PR for this. |
I see. It's better to have ng2-overlay as dependencies, not devDependencies
|
@allenhwkim what do you mean by PR ? |
it did not worked even if i add dependency |
PR: a pull request. |
When i add Ng2PopupModule to my project and I am getting below error
ERROR in Ng2PopupModule is not an NgModule
I am using angular 2.4.X with Angular cli rc1
The text was updated successfully, but these errors were encountered: