import turboTable does not work

UI Components for Angular
ben1967
Posts: 21
Joined: 28 Dec 2017, 13:36

17 Jan 2018, 13:45

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

Galiza
Posts: 9
Joined: 31 Oct 2017, 17:34

17 Jan 2018, 14:58

It doesn't work because apparently we still cannot install the new version of the PrimeNG, and the TurboTable is not available at the 5.0.2 version.

FredericL
Posts: 3
Joined: 17 Jan 2018, 17:15

17 Jan 2018, 17:37

Yes actually you need the "primeng": "^5.2.0-rc.1" version.

I installed it this morning following this instructions :
- yarn remove primeng
- yarn add primeng

Fred

rafa-as
Posts: 14
Joined: 28 Jul 2017, 13:53

17 Jan 2018, 19:29

You can install the 5.2.0-rc.1 version from npm/yarn but anyway the import doesn't work. The component works properly.

ben1967
Posts: 21
Joined: 28 Dec 2017, 13:36

17 Jan 2018, 20:28

thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Jan 2018, 14:09

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?

rafa-as
Posts: 14
Joined: 28 Jul 2017, 13:53

18 Jan 2018, 14:38

optimus.prime wrote:
18 Jan 2018, 14:09
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?
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.

glennsymons
Posts: 10
Joined: 06 Dec 2017, 14:59

18 Jan 2018, 18:34

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.

rafa-as
Posts: 14
Joined: 28 Jul 2017, 13:53

18 Jan 2018, 19:25

glennsymons wrote:
18 Jan 2018, 18:34
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.
Exactly the same issue that I have

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Jan 2018, 22:16

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.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: Ritik2411 and 7 guests