primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Errors and misleading showcase documentation

Open sasynkamil opened this issue 5 years ago • 1 comments

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Plunkr Case (Bug Reports)

I can see that not only me also other newcomers are struggling with the PrimeNG project setup. Since there are multiple issues (at least from my point of view) and I'm not sure if all of them you agree to fix, let me name them here:

  1. Ge started & PrimeNG installation
  • Issue You have nice video and showcase page how to get started. But issue is that fresh angular project ng new myNewProject can have some newer packages that PrimeNG does not accepts (so errors during npm install primeng --save. For example now (Angular 11 & PrimeNG 11.2.0) zone.js must be downgraded.

  • Solution I think it would be beneficial to update either primeng-quickstart-cli or primeng-blueprint to the latest Angular & PrimeNG version and mention this project in the Get started section specially for newcomers to avoid "dependency hell".

  1. PrimeNG component installation & 3rd party libraries (topic on PrimeNG forum)
  • Issue Similarly as in point 1. above, if I use npm install @fullcalendar/core --save what is mentioned in the PrimeNG FullCalendar showcase, the latest @FullCalendar dependency is installed, so now I get version 5, but as you have correctly written in doc, 4.1.0+ is required by PrimeNG.
  • Solution I believe it would be better to put command specifying major version to the showcase doc: npm install @fullcalendar/core@^4.1.0
  1. Wrong "styles" path mentioned in PrimeNG doc topic on PrimeNG forum
  • Issue: Prime icons not displayed & error in the console due to wrong paths, like "node_modules/primeicons/primeicons.css",
  • Solution "./node_modules/primeicons/primeicons.css",
  1. Wrong FulLCalendar doc - constructor
  • Issue there is constructor(private http: Http) {}
  • Solution should be constructor(private http: HttpClient) {}
  1. Typescript preferred casting due to tslint.json
  • Issue fresh angular project has included tslint.json and it's preferred casting is by using keyword object as NewType instead of <NewType>object.
  • Solution it would be good to use the same in PrimeNG showcase/doc to be aligned with official TS/Angular doc, so Lint stops arguing

Please tell us about your environment:

  • Angular version: 11.0.0

  • PrimeNG version: 11.2.0

sasynkamil avatar Feb 10 '21 13:02 sasynkamil

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

cetincakiroglu avatar Nov 09 '22 14:11 cetincakiroglu