Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Suggested answer

yarn msdyn365 pack run fail

Posted on by 5

When trying to build using 'yarn msdyn365 pack' I get the following error :

Ecommerce SDK:  9.40(10.0.30)

Errors:
> Error 1:
[object Object]
Errors during webpack build. See previous several lines for additional messages (written as 'stats-client-build-errors.json').
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-- Error building application.
-- undefined
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]PowerShell exited with code '1'.
Error Message
"message": "Module not found: Error: Can't resolve 'querystring' in 'C:\\xxx\\xxx\\submission\\node_modules\\@msdyn365-commerce\\core-internal\\dist\\lib\\components\\image'\n\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.\nThis is no longer the case. Verify if you need this module and configure a polyfill for it.\n\nIf you want to include a polyfill, you need to:\n\t- add a fallback 'resolve.fallback: { \"querystring\": require.resolve(\"querystring-es3\") }'\n\t- install 'querystring-es3'\nIf you don't want to include a polyfill, you can use an empty module like this:\n\tresolve.fallback: { \"querystring\": false }",
Any tip ?
  • Suggested answer
    Gopikrish25 Profile Picture
    Gopikrish25 47 on at
    yarn msdyn365 pack run fail
    Can you check if this is because of the node task? Trying the following version condition which might resolve the issue. 
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans