Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : wb5VjmricwDWPKN63SPlgH
Supply chain | Supply Chain Management, Commerce
Unanswered

TS7006: Parameter 'item' implicitly has an 'any' type in node modules (Microsoft Dynamics Commerce)

Like (1) ShareShare
ReportReport
Posted on 24 Oct 2024 13:48:14 by 4
Hi experts,
I've a microsoft dynamics commerce project (react+ts). Project was working fine earlier. I've just clone the project from git and it gives me error to upload node version to 18. I updated the node version and also updated all the packages by using following commands
**yarn msdyn365 upgrade-webpack
yarn msdyn365 update-versions module-library
yarn msdyn365 update-versions retail-proxy
yarn msdyn365 update-versions sdk**
i re-installed my node modules by adding the command **yarn**.
but i'm getting errors
**ERRORS:**
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:392:77
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:393:74
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/checkout/src/modules/checkout/components/get-line-items.tsx:402:55
TS2345: Argument of type 'unknown' is not assignable to parameter of type 'CartLine[]'.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:131:76
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:132:79
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:133:74
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:135:24
TS7006: Parameter 'item' implicitly has an 'any' type.
ERROR in node_modules/@msdyn365-commerce-modules/order-management/src/common/utilities.ts:151:28
TS2571: Object is of type 'unknown'.

THIS IS THE ISSUE, I'M UNABLE TO CREATE THE PACKAGE OF MY PROJECT BY USING THIS COMMAND **yarn msdyn365 pack**
  • CU17030547-0 Profile Picture
    5 on 17 Mar 2025 at 05:50:05
    TS7006: Parameter 'item' implicitly has an 'any' type in node modules (Microsoft Dynamics Commerce)
    Hi!

    May I ask if this was resolved?
    I'm facing the exact same error after upgrading

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans