Skip to content
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

Error in prod build ionic #9

Open
ArtKuz opened this issue Jul 29, 2017 · 3 comments
Open

Error in prod build ionic #9

ArtKuz opened this issue Jul 29, 2017 · 3 comments

Comments

@ArtKuz
Copy link

ArtKuz commented Jul 29, 2017

I run:

ionic build android --prod

and get error in ionic2-autosize:
2017-07-30 3 23 35
Can you help me and resolve this problem?

@zmbc
Copy link
Collaborator

zmbc commented Jul 30, 2017

Hi @ArtKuz,

Is Autosize in your app.module.ts in the declarations array? Instead, AutosizeModule should be in the imports array.

@ArtKuz
Copy link
Author

ArtKuz commented Aug 16, 2017

Thank you. It fix it for me. Please add this information in ReadMe.

@Chethannp
Copy link

ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.

I am using Ionic lazy loading.

Requesting you to please help

Home.module.ts file

import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { HomePage } from './home';

//Shared Module
import { ComponentsModule } from '../../components/components.module';

//Directives
import { AutosizeModule } from 'ionic2-autosize';

@NgModule({
declarations: [
HomePage,
],
imports: [
IonicPageModule.forChild(HomePage),
ComponentsModule,
AutosizeModule
],
})
export class HomePageModule {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants