Hi,
I want to use the new turboTable but my import doesn't work:
I have done this:
run npm install
run npm install primeng --save
Then I get back my version is + primeng@5.0.2
But it can't find import on:
import { TableModule } from 'primeng/table';
like in your doc is stated.
What I am doing wrong ?
Thanks
Ben
import turboTable does not work
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Example CLI project that uses the new import convention featuring a table and other components;
https://github.com/primefaces/primeng-quickstart-cli
It works for me so could be a config issue maybe?
https://github.com/primefaces/primeng-quickstart-cli
It works for me so could be a config issue maybe?
Maybe the issue can be a problem with the configuration, because the project example has all the config files like tsconfig and tsconfig.app outdated. You can try it generating a new project with the last version of angular-cli, and in my case the new import doesn't works.optimus.prime wrote: ↑18 Jan 2018, 14:09Example CLI project that uses the new import convention featuring a table and other components;
https://github.com/primefaces/primeng-quickstart-cli
It works for me so could be a config issue maybe?
-
- Posts: 10
- Joined: 06 Dec 2017, 14:59
Hi,
got the same problem. The new import system does not work (for all components)
Fixed the import for the TurboTable by using
import { TableModule } from 'primeng/components/table/table';
But now the table has no styles applied.
got the same problem. The new import system does not work (for all components)
Fixed the import for the TurboTable by using
import { TableModule } from 'primeng/components/table/table';
But now the table has no styles applied.
Exactly the same issue that I haveglennsymons wrote: ↑18 Jan 2018, 18:34Hi,
got the same problem. The new import system does not work (for all components)
Fixed the import for the TurboTable by using
import { TableModule } from 'primeng/components/table/table';
But now the table has no styles applied.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What is your Angular version, I got this working on Angular 5.2.0, will try with a brand new CLI project tomorrow and update our quickstart-cli as well. Would be great if we can replicate it to see why it fails.