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

problem with NgxAdminLteModule #35

Open
sajadonline opened this issue Jan 26, 2018 · 4 comments
Open

problem with NgxAdminLteModule #35

sajadonline opened this issue Jan 26, 2018 · 4 comments

Comments

@sajadonline
Copy link

hi
i when import NgxAdminLteModule in
@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, NgxAdminLteModule ], providers: [], bootstrap: [AppComponent] })

have a error for compile

`ERROR in ./node_modules/ngx-admin-lte/index.ts
Module build failed: Error: /home/sajad/project/pardiscrm-ng/node_modules/ngx-admin-lte/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/home/sajad/project/pardiscrm-ng/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:656:23)
at plugin.done.then (/home/sajad/project/pardiscrm-ng/node_modules/@ngtools/webpack/src/loader.js:467:39)
at process._tickCallback (internal/process/next_tick.js:109:7)
@ ./src/app/app.module.ts 11:22-46
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

webpack: Failed to compile.
ERROR in node_modules/ngx-admin-lte/src/ngx-admin-lte.module.ts(14,36): error TS2345: Argument of type 'HttpClient' is not assignable to parameter of type 'HttpClient'.
Types have separate declarations of a private property 'handler'.
`

@TwanoO67
Copy link
Owner

Hello,

Can you look if your node-modules actually contains ngx admin lte?
And if so, what does it contains ?

@sajadonline
Copy link
Author

sajadonline commented Jan 26, 2018

hi again
my package.json is
"dependencies": { "@angular/animations": "^5.0.0", "@angular/common": "^5.0.0", "@angular/compiler": "^5.0.0", "@angular/core": "^5.0.0", "@angular/forms": "^5.0.0", "@angular/http": "^5.0.0", "@angular/platform-browser": "^5.0.0", "@angular/platform-browser-dynamic": "^5.0.0", "@angular/router": "^5.0.0", "core-js": "^2.4.1", "ngx-admin-lte": "^1.0.1", "rxjs": "^5.5.2", "zone.js": "^0.8.14" },
and app.module.ts is
`
import { BrowserModule } from @ angular/platform-browser;
import { NgModule } from '@ angular/core';
import { NgxAdminLteModule } from 'ngx-admin-lte';

import { AppComponent } from './app.component';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxAdminLteModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
`

and when run npm install ngx-admin-lte

sajad@sajad-pc:~/project/pardiscrm-ng$ npm install --save ngx-admin-lte
pardiscrm-ng@0.0.0 /home/sajad/project/pardiscrm-ng
└─┬ ngx-admin-lte@1.0.1
└── UNMET PEER DEPENDENCY @angular/compiler@4.4.6

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/sajad/project/pardiscrm-ng/node_modules/webpack-concat-plugin/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/sajad/project/pardiscrm-ng/node_modules/node-gyp/node_modules/http-signature/package.json'
npm WARN @angular/platform-browser-dynamic@4.4.6 requires a peer of @angular/compiler@4.4.6 but none was installed.
sajad@sajad-pc:~/project/pardiscrm-ng$

@TwanoO67
Copy link
Owner

TwanoO67 commented Mar 7, 2018

Ok, so it's related to the new compilation of angular5 (coming from @angular/cli)
Now it doesn't compile the TS modules anymore.
So I have to publish the package as a JS module.
And for the moment I don't know how to do that, but I request help on issue #47

If you have any idea it would be much appreciated

@TwanoO67
Copy link
Owner

should be fixed by 2.0.0-beta.10.
Can you confirm ?

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

No branches or pull requests

2 participants