question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 5.2.4, CLI 1.6.8 : Cannot find module './src/ngx-uploader/module/ngx-uploader.module

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jspizziricommented, Jun 17, 2018

@ahmedwerpx’s solution worked for me. @jkuri it looks like the docs need to be updated to:

import { NgxUploaderModule } from 'ngx-uploader';

rather than:

import { NgUploaderModule } from 'ngx-uploader';
2reactions
ahmedmohsen90commented, Jun 16, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6: Cannot find module '@angular/cli/plugins/webpack'
I went for this solution using the CopyWebpackPlugin instead const CopyWebpackPlugin = require('copy-webpack-plugin'); plugins.push(new ...
Read more >
Cannot find module '@angular-devkit/core' after clean install
Cannot find module '@ angular -devkit/core' - after clean installmodule.js:540 throw err;^Error: Cannot find module '@ angular -devkit/core'
Read more >
Cannot find module '@angular/http&#38
Hello, After including MDB Pro into our angular5 project, I am getting an error during a compilation time: `ERROR in ...
Read more >
Error: Cannot find module '@angular-devkit/core' - ITNEXT
I struggled with the same problem just a minute ago. My project was generated using the v 1.6.0 of angular-cli. When ...
Read more >
angular/compiler-cli" package was not properly installed
Error: Error: Cannot find module '@angular/compiler-cli'. at Object.<anonymous> (d:\a\1\s\node_modules\@ngtools\webpack\src\index.js:14:11).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found