Angular 5.2.4, CLI 1.6.8 : Cannot find module './src/ngx-uploader/module/ngx-uploader.module
See original GitHub issueI forked the repo and did some changes to work, However, I am getting these issues in these cases.
I followed this link https://github.com/angular/angular-cli/issues/8284
My forked repo
I updated tsconfig.app.json
include
"include": [ "../node_modules/ngx-uploader/index.ts" ],
or
"include": [ "../node_modules/ngx-uploader/src/ngx-uploader/**/*.ts", "../node_modules/ngx-uploader/index.ts" ],
ERROR in node_modules/ngx-uploader/index.ts(1,15): error TS2307: Cannot find module ‘./src/ngx-uploader/module/ngx-uploader.module’.
node_modules/ngx-uploader/index.ts(2,15): error TS2307: Cannot find module ‘./src/ngx-uploader/classes/ngx-uploader.class’.
node_modules/ngx-uploader/index.ts(3,102): error TS2307: Cannot find module ‘./src/ngx-uploader/classes/interfaces’.
node_modules/ngx-uploader/index.ts(4,15): error TS2307: Cannot find module ‘./src/ngx-uploader/directives/ng-file-select.directive’.
node_modules/ngx-uploader/index.ts(5,15): error TS2307: Cannot find module ‘./src/ngx-uploader/directives/ng-file-drop.directive’.
Getting this error if I delete include intsconfig.app.json
If I use the main repo there are errors.
AmI missing any?
ERROR in node_modules/ngx-uploader/index.ts(1,15): error TS2307: Cannot find module ‘./src/ngx-uploader/module/ngx-uploader.module’. node_modules/ngx-uploader/index.ts(2,15): error TS2307: Cannot find module ‘./src/ngx-uploader/classes/ngx-uploader.class’. node_modules/ngx-uploader/index.ts(3,102): error TS2307: Cannot find module ‘./src/ngx-uploader/classes/interfaces’. node_modules/ngx-uploader/index.ts(4,15): error TS2307: Cannot find module ‘./src/ngx-uploader/directives/ng-file-select.directive’. node_modules/ngx-uploader/index.ts(5,15): error TS2307: Cannot find module ‘./src/ngx-uploader/directives/ng-file-drop.directive’. src/app/app.module.ts(10,10): error TS2305: Module ‘“E:/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘NgUploaderModule’. src/app/create-article/create-article.component.ts(2,48): error TS2305: Module ‘“E:/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘humanizeBytes’. src/app/create-group/create-group.component.ts(8,49): error TS2305: Module ‘“E:/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘humanizeBytes’. src/app/edit-article/edit-article.component.ts(2,48): error TS2305: Module ‘“E:/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘humanizeBytes’. src/app/edit-group/edit-group.component.ts(8,49): error TS2305: Module ‘“E:/New folder/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘humanizeBytes’. src/app/user-profile-edit/user-profile-edit.component.ts(10,49): error TS2305: Module ‘“E:/frontend-app/node_modules/ngx-uploader/index”’ has no exported member ‘humanizeBytes’.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
@ahmedwerpx’s solution worked for me. @jkuri it looks like the docs need to be updated to:
rather than:
I was have the same issue with angular 6 and i found the problem … import “NgxUploaderModule” not “NgUploaderModule” import { NgxUploaderModule } from ‘ngx-uploader’; now its worked