Angular 15 update broken dropdown

UI Components for Angular
Post Reply
justcoder
Posts: 5
Joined: 22 Dec 2021, 17:22

27 Jan 2023, 17:36

I updated Angular from version 14 to 15 (I also updated PrimeNG at the same time to 15.1.1) and now the dropdowns are not rendering with this error message in the console:

Code: Select all

ERROR TypeError: value.trim is not a function
at set klass [as klass] (common.mjs:2641:53)
at setInputsForProperty (core.mjs:11741:34)
at setDirectiveInputsWhichShadowsStyling (core.mjs:13650:5)
at checkStylingMap (core.mjs:15612:13)
at module.eeclassMap(core.mjs:15529:5)
at Overlay_div_0_Template (primeng-overlay.mjs:327:93)
at executeTemplate (core.mjs:10534:9)
at refreshView (core.mjs:10419:13)
at refreshEmbeddedViews (core.mjs:11434:17)
at refreshView (core.mjs:10443:9)
Thanks

justcoder
Posts: 5
Joined: 22 Dec 2021, 17:22

30 Jan 2023, 11:34

I seem to have fixed this but not sure how. I noticed that my production version was working OK and the error was only on my local copy. I deleted my 'node_modules' and 'package-lock.json' files then do a fresh installation and "hey presto" it is all working again.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests