Primeng: Feature request: make it compatible with Angular 6

Created on 15 May 2018  路  17Comments  路  Source: primefaces/primeng

Is there any possibility to have a new version compatible with Angular 6 in the near future, because now it returns errors related to RxJS:

ERROR in node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
node_modules/primeng/components/table/table.d.ts(8,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/table/table.d.ts(9,10): error TS2305: Module '"/development/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/common/messageservice.d.ts(1,10): error TS2305: Module '"/development/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/messages/messages.d.ts(4,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/growl/growl.d.ts(5,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/accordion/accordion.d.ts(4,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/common/treedragdropservice.d.ts(1,10): error TS2305: Module '"/development/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/common/confirmationservice.d.ts(1,10): error TS2305: Module '"/development/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/confirmdialog/confirmdialog.d.ts(5,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/datatable/datatable.d.ts(8,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/terminal/terminalservice.d.ts(1,10): error TS2305: Module '"/development/client/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/terminal/terminal.d.ts(4,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/tree/tree.d.ts(4,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/treetable/treetable.d.ts(4,10): error TS2305: Module '"/development/client/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.

Most helpful comment

How long do we have to wait for stable release with support of rxjs 6.0?

All 17 comments

Please, ... I am having the same issue:

ERROR in node_modules/primeng/components/common/confirmationservice.d.ts(1,10): error TS2305: Module '"./ng/incident-mg/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/primeng/components/confirmdialog/confirmdialog.d.ts(5,10): error TS2305: Module '"./ng/incident-mg/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/primeng/components/datatable/datatable.d.ts(8,10): error TS2305: Module '"./ng/incident-mg/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.

You can add rxjs-compat to your package.json for the time being.

How long do we have to wait for stable release with support of rxjs 6.0?

+1

Thanks ctrl-brk, rxjs-compat worked for me.

I have changed my small application from 5 to 6 and the changes are not trivial.

hello, sorry for the question but how i can add the rxjs-compat to the package.json? what part?

@chrisGH, to the "dependencies"

great just now i saw it on this page by extention of youtube, i just started with angular i develop a project of the school of listcheck, apologize the molest but i have another question how do you do to dont lose the reference of a object by the id when you pass to other views when you run the app, somebody told me that with a @session but i dont know nothing about this

@chrisGH Read about localStorage and sessionStorage or navigating by data
i mean. eg. /todo?id=15

From the folder containing package.json:

    npm install --save-dev rxjs-compat

that will install rxjs comparability for the local project.

+1

in node_modules/primeng/components/common/confirmationservice.d.ts(5,33): error TS1005: ';' expected

ERROR in node_modules/primeng/components/common/messageservice.d.ts(5,28): error TS1005: ';' expected.

I aslo Faced same issue today so I fixed by following commands

npm install primeng@^7.0.0-beta.1 --save

in beta version this issue has been resolved.

npm install [email protected] --save

npm install [email protected] --save

Yes It resolved my problem. Thanks @dilshad

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Faigjaz picture Faigjaz  路  3Comments

Helayxa picture Helayxa  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments

lilling picture lilling  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments