Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: make it compatible with Angular 6 #5738

Closed
rbatllet opened this issue May 15, 2018 · 17 comments
Closed

Feature request: make it compatible with Angular 6 #5738

rbatllet opened this issue May 15, 2018 · 17 comments

Comments

@rbatllet
Copy link

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'.
@PHuhn
Copy link

PHuhn commented May 15, 2018

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'.

@ctrl-brk
Copy link

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

@gtteamamxx
Copy link

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

@rendy14s
Copy link

+1

@PHuhn
Copy link

PHuhn commented May 17, 2018

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

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

@cagataycivici
Copy link
Member

#5758

@chrisGH
Copy link

chrisGH commented Jun 4, 2018

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

@ctrl-brk
Copy link

ctrl-brk commented Jun 4, 2018

@chrisGH, to the "dependencies"

@chrisGH
Copy link

chrisGH commented Jun 4, 2018

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

@gtteamamxx
Copy link

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

@PHuhn
Copy link

PHuhn commented Jun 4, 2018

From the folder containing package.json:

    npm install --save-dev rxjs-compat

that will install rxjs comparability for the local project.

@apivaral
Copy link

apivaral commented Jul 4, 2018

+1

@palmurugan
Copy link

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

@SrikrushnaP
Copy link

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

@abhishekp21
Copy link

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.

@dilshad372
Copy link

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

@SrikrushnaP
Copy link

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

Yes It resolved my problem. Thanks @dilshad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests