-
Notifications
You must be signed in to change notification settings - Fork 878
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
cannot run build:prod in ngx-admin #798
Comments
Experiencing the same issue |
Expiriencing the same issue |
Same issue here, after migrating to angular 6 |
Took me a few hours to figure out that this only occurs using version 1.3.0. |
@RicardoDeWilde did you run with the latest Angular 6 ? bucause i tried with 1.2.2 but no luck. |
@wrappixel Ah, sorry... Read over the Angular 6.0.0 part. No, I'm using Angular 5, but have experienced the same issue with ng2-smart-table 1.3.0. Thought this might also apply to 6.0.0. On a side-note, I forgot to mention the I also cleared my node_modules folder before doing npm install |
@wrappixel I was having the same issue, and switching to 1.2.2 solved it. My angular version :
Package.json details
Maybe it's related to angular 6 version ( 6.0.0 vs 6.0.3) ? |
@gagaXD check the screenshot with version of ( 1.2.2 ): |
Here is full copy of ng version output :
I try to run my So, not really sure of what is causing this issue :/ |
@gagaXD Solved, it was my mistake in package.json file i was writing with cap "ng2-smart-table": "^1.2.2", instead of "ng2-smart-table": "1.2.2" Thanks for your help. |
#801 fixed this problem |
Hi, something new about this issue? I have the same problem... |
experience same issue with following setup. my workaround is |
Should be fine in 1.3.1 now! |
Unfortunately, issue have returned in 1.3.2
|
Forked and tested. Works ok with AOT in version 1.3.3. Thank you. |
Hi buddy,
I've setup project with latest version of ngx-admin and also use ng2-smart-table component, when I run with DEV mode, everything is good, but after I type npm run build:prod, I saw such error:
ERROR in : Unexpected value 'Ng2SmartTableModule in C:/my-project/my-admin/node_modules/ng2-smart-table/ng2-smart-table.module.d.ts' imported by the module 'AppModule in C:/my-project/my-admin/src/app/app.module.ts'. Please add a @NgModule
annotation.
app.module.ts:
...
import { Ng2SmartTableModule } from 'ng2-smart-table';
...
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
AppRoutingModule,
Ng2SmartTableModule,
NgbModule.forRoot(),
ThemeModule.forRoot(),
CoreModule.forRoot(),
ToasterModule.forRoot(),
],
...
The version is 1.3.0 for ng2-smart-table. Angular version is 6.0.0, Could someone help me out of trap ? Thanks ~
The text was updated successfully, but these errors were encountered: