Skip to main content

Notifications

Community site session details

Community site session details

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

IMPORTANT: Breaking build coming with update to e-Commerce online SDK package version 1.37 with support for Node 16.x

(3) ShareShare
ReportReport
Posted on by

If you are currently building the Dynamics 365 Commerce e-commerce extension package using the online SDK then this notice is important as it will require an update to Node 16.x on your development environment and any build pipelines you may be using.

Coming in April (currently targeting April 18th-22nd) the online SDK package will update to version 1.37.  Due to Node.js deprecating support for version 12.x at the end of April, the SDK will be updated to support the latest version of Node.js version 16.x. 

After the package update has been published by Microsoft, when running "yarn msdyn365 pack", the latest SDK package will be downloaded and without updating Node.js to version 16.x you will see the following error message "The engine "node" is incompatible with this module. Expected version ">=16.x.x". Got "12.22.6"".  Updating to Node.js 16.x will make the error go away and the package should build without errors.  This will need to be done on local build environments and also any automated builds such as an Azure DevOps pipelines.

More information on setting up a development environment can be found here: Set up a development environment - Commerce | Dynamics 365 | Microsoft Docs.  Once the package is updated this doc will reflect the pre-requisite of Node.js 12.x.

thanks,

Sam

  • commander Profile Picture
    on at
    RE: IMPORTANT: Breaking build coming with update to e-Commerce online SDK package version 1.37 with support for Node 16.x

    Follow these steps

    1) Remove yarn.lock file

    2) Yarn cache clean

    3) Yarn

    4) yarn msdyn365 update-versions sdk

    There has been some type changes with react. if it still does not work, add this types/react and types/react-dom to Package.json under resolutions and try yarn, yarn msdyn365 pack after that

    "resolutions": {

       "@msdyn365-commerce/bootloader": "^1.0.0",

       "@msdyn365-commerce/core": "^1.0.0",

       "@msdyn365-commerce-modules/core-components": "^1.0.0",

       "axios": "^0.21.1",

       "@types/react": "16.9.0",

       "@types/react-dom": "16.0.11"

     },

  • Nat J Profile Picture
    28 on at
    RE: IMPORTANT: Breaking build coming with update to e-Commerce online SDK package version 1.37 with support for Node 16.x

    Hi,

    I have updated to node version 16 but now there seem to be ts errors in microsoft node_modules files

    i.e.

    ERROR in /node_modules/@msdyn365-commerce-modules/ratings-reviews/src/modules/reviews-list/components/review-card.tsx(75,13):

    TS2322: Type 'string | Date' is not assignable to type 'ReactNode'.

     Type 'Date' is not assignable to type 'ReactNode'.

       Type 'Date' is not assignable to type 'number'.

    ERROR in /node_modules/@msdyn365-commerce-modules/utilities/src/button/Button.props.ts(29,17):

    TS2694: Namespace 'React' has no exported member 'ReactType'.

    Is anyone else experiencing this or am I missing something? Is there a specific set of versions the linter should be on?

    The only way i can find to ignore these issues is by editing the tsconfig.json, however as that is autogenerated the changes wont last...

    Any suggestions would be greatly appreciated

  • Sam Jarawan Profile Picture
    on at
    RE: IMPORTANT: Breaking build coming with update to e-Commerce online SDK package version 1.37 with support for Node 16.x

    Just an update as of 4/27 the update is now live, so ensure you have Node 16.x installed to avoid this error.

    thanks,

    Sam

  • WillWU Profile Picture
    22,357 on at
    RE: IMPORTANT: Breaking build coming with update to e-Commerce online SDK package version 9.37 with support for Node 16.x

    Thank you for your sharing.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans