hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
104 stars 55 forks source link

Module not found: Error: Can't resolve '@angular-generic-table/core/components/gt-expanding-row.component' #216

Open michmosh opened 6 years ago

michmosh commented 6 years ago

I installed ubutntu 17.10. I started to get error:

Module not found: Error: Can't resolve '@angular-generic-table/core/components/gt-expanding-row.component'

It happens when i do the command ng-serve.

hjalmers commented 6 years ago

Hi @michmosh, have you cloned the repository or installed it in your own project using npm?

michmosh commented 6 years ago

Hello, Thanks for your reply. I instaled it using npm as part of a larger project that uses generic table. Thank you very much

Regards Moshe Michalovich

בתאריך יום ד׳, 18 באפר׳ 2018, 09:49, מאת Robert Hjalmers ‏< notifications@github.com>:

Hi @michmosh https://github.com/michmosh, have you cloned the repository or installed it in your own project using npm?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hjalmers/angular-generic-table/issues/216#issuecomment-382281173, or mute the thread https://github.com/notifications/unsubscribe-auth/AQhCIZv0pgMBGpTPIjVR6XH8GpP-ZH3Mks5tpuH3gaJpZM4TWFJM .

hjalmers commented 6 years ago

How have you imported it, do you have some code you can share perhaps? If you copied from this example I noticed the reference is wrong it should be:

 import {GtExpandedRow} from '@angular-generic-table/core';
michmosh commented 6 years ago

Hello, Thanks for your reply. Could it be related to deleting this line ' @types : [] ' from tsconfig.app.json file ? I deleted it and the problem was solved but i dont know why.

Regards Moshe Michalovich

בתאריך יום ה׳, 19 באפר׳ 2018, 09:18, מאת Robert Hjalmers ‏< notifications@github.com>:

How have you imported it, do you have some could you can share perhaps? If you copied from this example https://hjalmers.github.io/angular-generic-table/row-click I noticed the reference is wrong it should be:

import {GtExpandedRow} from '@angular-generic-table/core/components/gt-expanding-row.component';

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hjalmers/angular-generic-table/issues/216#issuecomment-382623272, or mute the thread https://github.com/notifications/unsubscribe-auth/AQhCIaBsTidQFdPqiu8wr1GGB9SMooYBks5tqCxQgaJpZM4TWFJM .