Topic: Scroll Spy Service Error
nicolamarcopasini pro asked 6 years ago
I create a new project. When I publish I've an error with the ng-uikit-pro-standard modules:
ERROR in node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(10,20): error TS1005: ';' expected.
node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(10,83): error TS1005: '(' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(11,27): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(11,39): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(11,45): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(12,32): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(12,41): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(12,47): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(13,34): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(13,56): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(13,65): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(13,71): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(14,34): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(14,56): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(14,65): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(14,71): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(15,29): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(15,60): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(15,66): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(16,34): error TS1005: ',' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(16,43): error TS1005: ';' expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(16,49): error TS1109: Expression expected. node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts(17,1): error TS1128: Declaration or statement expected.
Damian Gemza staff answered 6 years ago
Dear nicolamarcopasini,
Could you please provide me with the reproduction steps so I'll be able to debug your problem.
Please tell me how to reproduce it, because we have tried but without success.
Do this error comes after ng serve / npm start or something else like ng lint?
Please provide me with more informations.
Best Regards, Damian
YasirabbasNovaturesol pro answered 6 years ago
Hello, I am getting same error after ng serve My project was running fine few days ago, i didn't made any change and try to start project but getting following error: See screenshot https://prnt.sc/mbf2o8
Arkadiusz Idzikowski staff answered 6 years ago
Did you install new version from gitlab or used .tgz file from the zip version? Can you try to remove node_modules and package-lock.json and reinstall with 'npm install' ?
mercgie pro answered 6 years ago
Hi,
I had the same problem and need to change the file :
node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/scroll-spy/scroll-spy.service.d.ts
line 10:
active$: import("rxjs/internal/Observable").Observable< ScrollSpyLinkDirective >;
to:
active$: Observable< ScrollSpyLinkDirective >; - without space
and add import:
import { Observable } from 'rxjs';
this solved the problem with me
Damian Gemza staff answered 6 years ago
Dear mercgie,
Could you please send me your application?
I would like to debug this problem, but I'm not able to reproduce it on my application.
Or if it's impossible to send me your whole application, please prepare a reproduction app on which those problems will be visible.
Here's my email: d.gemza@mdbootstrap.com
Best Regards,
Damian
Damian Gemza staff answered 6 years ago
Guys,
We have made some changes to the scroll-spy.service.ts
file. The changes are available on the #dev
branch of the ng-uikit-pro-standard
repository.
If you have had a similar problem, please check if it continues.
Just change the line in the package.json file
"ng-uikit-pro-standard": "git+https://oauth2:<token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git',
to
"ng-uikit-pro-standard": "git+https://oauth2:<token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#dev",
Consider that this is a development branch, and you should not use it on the production version of your application, because the changes made there are not yet fully tested.
In case of any problems I encourage you to contact me!
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: Desktop
- Browser: Chrome
- OS: MacOSX
- Provided sample code: No
- Provided link: No