web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    on at
    RE: Reason for dev dependency on webpack 5

    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
    RE: Reason for dev dependency on webpack 5

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 876

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 264 Super User 2025 Season 2

#3
Sagar Suman Profile Picture

Sagar Suman 210 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans