web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Reason for dev dependency on webpack 5

(0) ShareShare
ReportReport
Posted on by

I'm currently upgrading an old D365 ecommerce codebase and noticed that the latest package.json has a dev dependency of "webpack": "^5.42.0". This requirement seems to be causing errors with a couple of 3rd party packages we need to use and our build fails. Looking at the github history, I can see the change was updated in this commit - https://github.com/microsoft/Msdyn365.Commerce.Online/commit/6397405b8130f948c7dacee0eedff957d3fc411e, but there are no further details. How can I find out why this requirement was added and what the effect would be of removing it?

Thanks.

I have the same question (0)
  • Suggested answer
    MuraliElangovan Profile Picture
    Microsoft Employee on at

    rsudworth We always had dev dependency on webpack. The dependency would come via bootloader package. What you see in the package.json was added as a resolution because at some stage a newer version of webpack5 was brining in a dependency that was causing build issues.

    Taking a step back, we cut over from webpack 4 to webpack 5 some time ago, making webpack5 as default. What was the version you are upgrading from? Depending on that it could be related to webpack 5 upgrade or some other issue.

    learn.microsoft.com/.../sdk-faq

  • rsudworth Profile Picture
    on at

    Thank you for responding. The upgrade is from 9.38 to 9.40 and I think it should already have the webpack 5 dev dependency, however I wasn't involved until recently and I think previous upgrades only changed the SDK version and the developer didn't check for other changes in package.json. It sounds like perhaps I could work back through webpack versions to find one that is ok fire both ms commerce and the 3rd party packages. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 88 Super User 2026 Season 1

#2
Sagar Suman Profile Picture

Sagar Suman 72 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 54 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans